cleartextstream.destroy() should destroy socket.
authorRyan Dahl <ry@tinyclouds.org>
Mon, 2 May 2011 19:13:06 +0000 (12:13 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 2 May 2011 22:03:50 +0000 (15:03 -0700)
commit75a0cf970fb48440a93a62796ab1f128fcbe7d76
treedaf7dd177eaffecc55660332078acc7401b82960
parent82bc25d5ada29b8d60787259b13feb39eed3296e
cleartextstream.destroy() should destroy socket.

This fixes a critical bug see in MJR's production. Very difficult to build a
test case. Sometimes HTTPS server gets sockets that are hanging in a
half-duplex state.
lib/stream.js
lib/tls.js
test/simple/test-https-eof-for-eom.js
test/simple/test-stream-pipe-cleanup.js