1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/unit_node
Yoshiya Hinosawa 186f7484da
fix(ext/node): close upgraded socket when the underlying http connection is closed (#25387)
This change fixes the handling of upgraded socket from `node:http` module.

In `op_node_http_fetch_response_upgrade`, we create DuplexStream paired
with `hyper::upgrade::Upgraded`. When the connection is closed from the
server, the read result from `Upgraded` becomes 0. However because we
don't close the paired DuplexStream at that point, the Socket object in
JS side keeps alive even after the server closed. That caused the issue
#20179

This change fixes it by closing the paired DuplexStream when the
`Upgraded` stream returns 0 read result.

closes #20179
2024-09-05 13:30:18 +09:00
..
_fs test: run node_unit_tests with DENO_FUTURE=1 (#25285) 2024-08-29 00:09:06 +00:00
crypto fix: upgrade deno_ast 0.42 (#25313) 2024-08-30 17:12:13 -04:00
internal chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
testdata fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
_test_utils.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
assert_test.ts fix(node/assert): throws not checking error instance (#24466) 2024-07-08 21:28:39 +02:00
assertion_error_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
async_hooks_test.ts fix: reland async context (#25140) 2024-08-29 02:25:38 +00:00
buffer_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
child_process_test.ts fix(node): Rework node:child_process IPC (#24763) 2024-07-30 16:13:24 -07:00
cluster_test.ts fix(node/cluster): improve stubs to make log4js work (#25146) 2024-08-26 11:19:58 +02:00
console_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
dgram_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
domain_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
events_test.ts fix(ext/node): implement EventEmitterAsyncResource (#22994) 2024-03-20 11:20:18 +05:30
fs_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
http2_test.ts fix(ext/node): session close during stream setup (#25170) 2024-08-30 23:16:17 +05:30
http_test.ts fix(ext/node): close upgraded socket when the underlying http connection is closed (#25387) 2024-09-05 13:30:18 +09:00
inspector_test.ts fix(node/inspector): Session constructor should not throw (#25041) 2024-08-14 13:34:24 +00:00
module_test.ts fix: stub node:module.register() (#24965) 2024-08-09 14:25:33 +02:00
net_test.ts chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
os_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
path_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
perf_hooks_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
process_test.ts chore: enable no-console dlint rule (#25113) 2024-08-20 15:14:37 -04:00
punycode_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
querystring_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
readline_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
repl_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
stream_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
string_decoder_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
timers_test.ts fix(node/timers/promises): add scheduler APIs (#24802) 2024-07-31 12:00:01 +02:00
tls_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
tty_test.ts fix(node/tty): fix tty.WriteStream.hasColor with different args (#25094) 2024-08-19 17:13:09 +02:00
util_test.ts fix(node/util): add missing debug alias of debuglog (#24944) 2024-08-08 13:52:14 +02:00
v8_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
vm_test.ts feat: vm rewrite (#24596) 2024-08-06 12:52:53 +00:00
wasi_test.ts fix(ext/node): register node:wasi built-in (#25134) 2024-08-22 09:03:52 +05:30
worker_threads_test.ts fix(ext/node): emit online event after worker thread is initialized (#25243) 2024-08-28 03:05:32 +00:00
zlib_test.ts fix(ext/node): createBrotliCompress params (#24984) 2024-08-11 14:26:30 +05:30