Closed
Description
- I've searched for any related issues and avoided creating a duplicate issue.
Description
Upon updating to ws 3.3.3, when a client disconnects the following exception is thrown:
events.js:183
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at TCP.onread (net.js:615:25)
Code works fine in previous version.
Reproducible in:
version: 3.3.3
Node.js version(s): v8.9.1
OS version(s): Windows 10 Pro, Fall update
Steps to reproduce:
- Create a websocket server
- Connect to the websocket server via Chrome (`new WebSocket('ws://localhost:3000'))
- Disconnect from the websocket server (via refreshing the page in Chrome)
Expected result:
The disconnect is handled gracefully, with the 'close' event being called.
Actual result:
An exception is thrown, which crashes the app:
events.js:183
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at _errnoException (util.js:1024:11)
at TCP.onread (net.js:615:25)
Metadata
Metadata
Assignees
Labels
No labels