-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eio): discard all pending packets when the server is closed
In some specific cases, the transport was not closed right away, leaving the Node.js process alive even after closing the server. The HTTP long-polling transport would be closed after the heartbeat failure and the `closeTimeout` delay (20 + 25 + 30 seconds). Example: ```js io.on("connection", (socket) => { // the writeBuffer is not empty, so the transport is not closed right away io.close(); }); ``` Related: #5088
- Loading branch information
1 parent
13c6d2e
commit 923a12e
Showing
2 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters