diff options
author | isaacs <i@izs.me> | 2013-06-04 23:43:29 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2013-06-05 08:06:35 -0700 |
commit | e0519ace315c7ce14278d5eaab8d1d72a0a0a054 (patch) | |
tree | 09aa41db21669ef9bcf4bcf491cd40a7aea1af04 /deps/npm/html/doc/index.html | |
parent | 6ada73383cfc4b5b1e85ae96412a23c330433cf5 (diff) | |
download | node-e0519ace315c7ce14278d5eaab8d1d72a0a0a054.tar.gz |
net: Destroy when not readable and not writable
This is only relevant for CentOS 6.3 using kernel version 2.6.32.
On other linuxes and darwin, the `read` call gets an ECONNRESET in that
case. On sunos, the `write` call fails with EPIPE.
However, old CentOS will occasionally send an EOF instead of a
ECONNRESET or EPIPE when the client has been destroyed abruptly.
Make sure we don't keep trying to write or read more in that case.
Fixes #5504
However, there is still the question of what libuv should do when it
gets an EOF. Apparently in this case, it will continue trying to read,
which is almost certainly the wrong thing to do.
That should be fixed in libuv, even though this works around the issue.
Diffstat (limited to 'deps/npm/html/doc/index.html')
0 files changed, 0 insertions, 0 deletions