0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
Anatoli Papirovski a627c5fc13
net: fix timeouts during long writes
Add updateWriteQueueSize which updates and returns queue size
(net & tls). Make _onTimeout check whether an active write
is ongoing and if so, call _unrefTimer rather than emitting
a timeout event.

Add http & https test that checks whether long-lasting (but
active) writes timeout or can finish writing as expected.

PR-URL: https://github.com/nodejs/node/pull/15791
Fixes: https://github.com/nodejs/node/issues/15082
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
2017-10-21 09:49:02 -04:00
..
internal lib: move duplicate spliceOne into internal/util 2017-10-20 15:51:20 -04:00
_http_agent.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_http_client.js http: emit close as the last event in the client 2017-10-18 15:56:19 +02:00
_http_common.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_http_incoming.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
_http_outgoing.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
_http_server.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
_stream_duplex.js
_stream_passthrough.js
_stream_readable.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
_stream_transform.js stream: migrate to internal/errors 2017-10-01 20:37:00 -03:00
_stream_wrap.js lib: move _stream_wrap into internals 2017-10-19 18:06:27 +02:00
_stream_writable.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_tls_common.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
_tls_legacy.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
_tls_wrap.js tls: properly track writeQueueSize during writes 2017-10-21 09:48:36 -04:00
.eslintrc.yaml
assert.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
async_hooks.js async_hooks: skip runtime checks when disabled 2017-10-19 12:45:21 +02:00
buffer.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
child_process.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
cluster.js
console.js
constants.js src: add support to pass flags to dlopen 2017-09-08 17:14:03 -04:00
crypto.js crypto: make createXYZ inlineable 2017-10-09 11:40:13 +02:00
dgram.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
dns.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
domain.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
events.js events: onceWrapper apply directly with arguments 2017-10-21 09:29:09 -04:00
fs.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
http2.js http2: refactor error handling 2017-08-28 00:39:42 +04:00
http.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
https.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
inspector.js inspector: migrate to internal/errors 2017-10-16 09:31:18 -07:00
module.js lib: fix extraneous space in module.js 2017-10-19 08:59:45 -04:00
net.js net: fix timeouts during long writes 2017-10-21 09:49:02 -04:00
os.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
path.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
perf_hooks.js
process.js
punycode.js
querystring.js tools: enable additional eslint rules 2017-10-19 13:54:14 -04:00
readline.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
repl.js repl: deprecate REPLServer.prototype.memory 2017-10-19 14:58:26 -04:00
stream.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
string_decoder.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
sys.js
timers.js timers: fix eventloop block 2017-10-18 11:59:11 -07:00
tls.js lib: faster type checks for some types 2017-10-01 23:58:59 -03:00
tty.js lib: use destructuring for some constants 2017-10-16 23:34:32 +02:00
url.js lib: move duplicate spliceOne into internal/util 2017-10-20 15:51:20 -04:00
util.js util: use faster -0 check 2017-10-04 03:51:44 -04:00
v8.js
vm.js vm: support parsing a script in a specific context 2017-09-05 10:47:42 +08:00
zlib.js zlib: migrate to internal/errors 2017-10-02 12:36:52 -07:00