node/test
Fedor Indutny d8371a801e http_server: fix resume after socket close
Socket resume may happen on a next tick, and in following scenario:

1. `socket.resume()`
2. `socket._handle.close()`
3. `socket._handle = null;`

The `_resume` will be invoked with empty `._handle` property. There is
nothing bad about it, and we should just ignore the `resume`/`pause`
events in this case.

Same applies to the unconsuming of socket on adding `data` and/or
`readable` event listeners.

Fix: https://github.com/nodejs/node/issues/2821

PR-URL: https://github.com/nodejs/node/pull/2824
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2015-09-15 17:14:23 +10:00
..
addons build: make ci test addons in test/addons 2015-08-26 21:14:37 +10:00
cctest deps: check in gtest, add util unit test 2015-04-01 22:35:56 +02:00
debugger debugger: improve ESRCH error message 2015-06-05 05:54:19 +02:00
disabled test: remove disabled test 2015-09-15 16:42:07 +10:00
fixtures src: use standard conform snprintf on windows 2015-09-06 21:37:07 +10:00
gc test: add spaces after keywords 2015-08-23 22:03:36 +10:00
internet test: split up internet dns tests 2015-09-15 16:41:27 +10:00
message test: mark eval_messages as flaky 2015-09-06 21:37:03 +10:00
parallel http_server: fix resume after socket close 2015-09-15 17:14:23 +10:00
pummel test: fix use of common before required 2015-09-06 21:37:06 +10:00
sequential doc,test: enable recursive file watching in Windows 2015-09-06 21:37:06 +10:00
testpy test: create temp dir in common.js 2015-06-12 10:27:29 +10:00
timers test: enable linting for tests 2015-05-19 21:21:27 +02:00
.eslintrc test: disallow unreachable code 2015-08-21 20:31:11 +10:00
common.js test: remove valid hostname check in test-dns.js 2015-09-12 13:31:46 +10:00