node/lib
Roee Kasher 3e3bfc57d9 src: unconsume stream fix in internal http impl
When emitting a 'connection' event on a httpServer, the function
connectionListener is called. Then, a new parser is created, and
'consume' method is called on the socket's externalStream. However,
if this stream was already consumed and unconsumed, the process
crashes with a cpp assert from the 'Consume' method in stream_base.h.
This commit makes sure that no SIGABRT will be raised and the process
will stay alive (after emitting the socket).

PR-URL: https://github.com/nodejs/node/pull/11015
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-02-02 12:01:13 -08:00
..
internal stream: move legacy to lib/internal dir 2017-02-01 09:58:51 +01:00
.eslintrc.yaml tools: rename eslintrc to an undeprecated format 2017-01-18 09:48:52 +05:30
_debug_agent.js debugger: use arrow function for lexical `this` 2016-08-18 16:44:38 -07:00
_debugger.js debugger: call `this.resume()` after `this.run()` 2016-12-05 14:25:39 -05:00
_http_agent.js http: eliminate capture of ClientRequest in Agent 2017-01-06 10:07:32 -08:00
_http_client.js http: use direct parameters instead 2017-01-31 12:56:21 -05:00
_http_common.js http: optimize default method case 2017-01-13 16:11:18 -05:00
_http_incoming.js http: try to avoid lowercasing incoming headers 2017-01-11 12:54:41 -05:00
_http_outgoing.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
_http_server.js src: unconsume stream fix in internal http impl 2017-02-02 12:01:13 -08:00
_linklist.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
_stream_duplex.js node: allow multiple arguments passed to nextTick 2015-04-15 17:02:21 -06:00
_stream_passthrough.js lib: use const to define constants 2015-01-21 16:21:31 -05:00
_stream_readable.js tools: enforce linebreak after ternary operators 2016-12-22 20:27:59 -08:00
_stream_transform.js src: fixes misplaced comment 2016-09-30 09:47:09 -07:00
_stream_wrap.js test,lib,benchmark: match function names 2016-10-19 22:20:27 -07:00
_stream_writable.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
_tls_common.js crypto: freelist_max_len is gone in OpenSSL 1.1.0 2017-01-23 15:17:07 +09:00
_tls_legacy.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
_tls_wrap.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
assert.js assert, tools: enforce strict (not)equal in eslint 2017-01-11 14:19:29 +00:00
buffer.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
child_process.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
cluster.js cluster: refactor module into multiple files 2017-01-13 17:01:07 -05:00
console.js console: name anonymous functions 2016-10-16 22:01:02 +02:00
constants.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
crypto.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
dgram.js dns: handle implicit bind DNS errors 2017-01-30 11:48:59 -05:00
dns.js dns: implement {ttl: true} for dns.resolve4() 2016-11-18 22:01:11 +01:00
domain.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
events.js events: avoid emit() eager deopt 2017-01-05 12:33:10 -08:00
fs.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
http.js http: name anonymous functions in http 2016-10-18 15:38:43 -07:00
https.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
module.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
net.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
os.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
path.js path: fallback to process cwd when resolving drive cwd 2016-09-24 01:14:56 +03:00
process.js src: remove excessive license boilerplate 2015-01-27 16:35:05 +11:00
punycode.js lib: remove let from for loops 2016-10-04 12:17:32 -04:00
querystring.js querystring: improve unescapeBuffer performance 2017-01-25 02:22:26 -05:00
readline.js readline: refactor construct Interface 2017-01-13 22:49:35 +08:00
repl.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
stream.js stream: move legacy to lib/internal dir 2017-02-01 09:58:51 +01:00
string_decoder.js string_decoder: align UTF-8 handling with V8 2017-01-26 22:46:18 +01:00
sys.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
timers.js timers: fix handling of cleared immediates 2016-12-14 10:10:22 -05:00
tls.js lib: remove unnecessary parameter for assertCrypto() 2017-01-18 11:13:18 +08:00
tty.js tty: set the handle to blocking mode 2016-08-10 23:41:28 +02:00
url.js url: stop exporting originFor() 2017-01-27 07:35:36 -08:00
util.js lib: add static identifier codes for all deprecations 2017-01-30 11:11:57 -08:00
v8.js lib,src: support values > 4GB in heap statistics 2016-12-11 14:45:52 +01:00
vm.js vm: improve performance of vm.runIn*() 2017-01-18 08:27:10 -08:00
zlib.js zlib: be strict about what strategies are accepted 2017-01-25 14:07:43 -08:00