-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node event loop stops while the write operation is in progress #1363
Comments
So if we have a pending write the event loop still appears empty and node will quit. And possibly we keep something in the loop queue after the write finishes so we never quit. |
Correct. There are two problems. |
Fixes event loop weirdness in #1363
This is was great, thank you so much. It's always nice when people give good bug reports, and it's even more amazing when they close them too. =) |
It's a pleasure to contribute :-) |
SerialPort Version: 6.0.0
NodeJS Version: 6.9.5 (64-bit)
Operating System and Hardware Platform: Windows 10 Pro (10.0.15063) x64
Have you checked the right version of the api docs?: yes
Are you having trouble installing and you checked the Installation Special Cases docs? no
Are you using Electron and have you checked the Electron Docs?: no
Summary of Problem
Event loop stops even if there is an incomplete write operation.
For example, simple open & write program (here) does not work.
I guess the new I/O for windows (#1221) does not preserve any AsyncWorker in write operation.
Steps and Code to Reproduce the Issue
message written
message if there are no pending callbacks nor timers.The text was updated successfully, but these errors were encountered: