-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
- Version: v10.15.1
- Platform: Windows 10 Pro 64-bit
- Subsystem: net
If net.Socket loses connection (close is emitted) and the same socket instance is used to reconnect to the same server, no more readable events are emitted (data events are still emitted).
Doesn't work in v10.14/v10.15.1. Works in v8.15.0.
Repro: https://gist.github.com/morkai/fa175bd0104443e6142f3d0e22805653
- Run
server.js - Run
client.js - Client prints
client#readable - Kill the server
- Run the server again
- Client reconnects
- Client doesn't print any
client#readablelines - Kill the client
- Uncomment the
dataevent handler and comment thereadablehandler inclient.js - Run the client
- Client prints
client#data - Kill the server
- Run the server again
- Client reconnects
- Client resumes printing
client#datalines
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.netIssues and PRs related to the net subsystem.Issues and PRs related to the net subsystem.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.