Closed
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#readable
lines - Kill the client
- Uncomment the
data
event handler and comment thereadable
handler inclient.js
- Run the client
- Client prints
client#data
- Kill the server
- Run the server again
- Client reconnects
- Client resumes printing
client#data
lines