Client disconnects over SSL crash the server
When the client calls .disconnect(), I'm seeing the following on the server:
info - socket error Error: EPIPE, Broken pipe
at Socket._writeImpl (net_legacy.js:159:14)
at Socket._writeOut (net_legacy.js:451:25)
at Socket.write (net_legacy.js:378:17)
at EncryptedStream.ondata (stream.js:36:26)
at EncryptedStream.emit (events.js:64:17)
at EncryptedStream._push (tls.js:327:12)
at SecurePair.cycle (tls.js:615:20)
at CleartextStream._pull (tls.js:381:17)
at SecurePair.cycle (tls.js:601:20)
at CleartextStream.end (tls.js:216:13)
You are using the 0.5 branch, which is not supported. If you can reproduce this with the stable node, feel free to reopen the issue On Jul 12, 2011, at 12:37 AM, publickeating wrote:
When the client calls .disconnect(), I'm seeing the following on the server:
info - socket error Error: EPIPE, Broken pipe at Socket._writeImpl (net_legacy.js:159:14) at Socket._writeOut (net_legacy.js:451:25) at Socket.write (net_legacy.js:378:17) at EncryptedStream.ondata (stream.js:36:26) at EncryptedStream.emit (events.js:64:17) at EncryptedStream._push (tls.js:327:12) at SecurePair.cycle (tls.js:615:20) at CleartextStream._pull (tls.js:381:17) at SecurePair.cycle (tls.js:601:20) at CleartextStream.end (tls.js:216:13)
Reply to this email directly or view it on GitHub: https://github.com/LearnBoost/socket.io/issues/371
Sorry, I didn't realize that. Thanks for your response, I'll try the stable branch.
The error still exists with v0.4.9. Calling socket.disconnect() on the client is causing the following:
info - socket error Error: EPIPE, Broken pipe
at Socket._writeImpl (net.js:159:14)
at Socket._writeOut (net.js:450:25)
at Socket.write (net.js:377:17)
at EncryptedStream.ondata (stream.js:36:26)
at EncryptedStream.emit (events.js:64:17)
at EncryptedStream._push (tls.js:299:12)
at SecurePair.cycle (tls.js:581:20)
at CleartextStream._pull (tls.js:353:17)
at SecurePair.cycle (tls.js:567:20)
at CleartextStream.end (tls.js:188:13)
We are having a similar problem with this callstack: (on v0.4.8)
Error: EPIPE, Broken pipe at Socket._writeImpl (net.js:159:14) at Socket._writeOut (net.js:447:25) at Socket.flush (net.js:526:24) at Socket._onWritable (net.js:606:12) at IOWatcher.onWritable (net.js:188:12)