Closed xPaw closed 4 years ago
connection.end relies on the callback, and it may not be called in some cases.
connection.end
I'm also thinking that socket.write itself may not fire it when socket is hanging.
socket.write
See https://github.com/thelounge/thelounge/issues/3697
The additions to transports/net.js should also be added to transports/websocket.js and then this PR look good to me.
transports/net.js
transports/websocket.js
connection.end
relies on the callback, and it may not be called in some cases.I'm also thinking that
socket.write
itself may not fire it when socket is hanging.See https://github.com/thelounge/thelounge/issues/3697