-
Notifications
You must be signed in to change notification settings - Fork 621
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
httpServer.close() not working correctly with slow Reader responses #1089
Comments
I'm not sure this is a bug as you have described it. |
Either makes sense to me:
I don't really care about which, my only problem are promises that are left infinitely unresolved. I believe this is a bug. |
agree |
|
This is the example from the website, with 2 modifications:
s.close()
is scheduled after 5 secondsReader
Assuming you make an HTTP request in the first 5s, the connection will be closed immediately after close is called, but the loop will "notice" this a decade later, when the buffer fills and a write fails.
I think
Server
should be trackingServerRequests
, not only theirConn
's, and onserver.close()
also fulfillreq.done
with a "server closed" error.The text was updated successfully, but these errors were encountered: