You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
is server stops accepting new connections immediately (sync call)?
It's complicated. The official story is that the server is active until you receive the close event.
Back story: The server socket is closed immediately (i.e. synchronously) but you can still receive a number of 'new' connections that have been accept()-ed and queued at the start of the event loop's current tick. Hence the need to wait for the close event.
Here's my git explaining everything: https://gist.github.com/1521447
Maybe docs really should be updated? I relied on the old behavior and had some headache with updating.
The text was updated successfully, but these errors were encountered: