1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-02 17:01:14 -05:00
denoland-deno/ext/node/ops
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
..
crypto fix(ext/node): import RSA JWK keys (#25267) 2024-08-28 20:56:11 +05:30
os fix(ext/node): read correct CPU usage stats on Linux (#24732) 2024-07-26 09:09:01 +05:30
zlib feat: upgrade deno_core (#24364) 2024-07-01 15:48:52 -07:00
blocklist.rs fix(ext/node): handle prefix mapping for IPv4-mapped IPv6 addresses (#24546) 2024-07-12 14:25:17 +05:30
buffer.rs feat(node): buffer isUtf8/isAscii (#23928) 2024-05-21 15:50:59 -07:00
fs.rs perf(ext/node): optimize fs.exists[Sync] (#24613) 2024-07-17 18:05:51 +05:30
http.rs fix(ext/node): close upgraded socket when the underlying http connection is closed (#25387) 2024-09-05 13:30:18 +09:00
http2.rs fix(ext/node): prevent panic in http2.connect with uppercase header names (#24780) 2024-07-29 13:33:55 +02:00
idna.rs fix(ext/node): Match punycode module behavior to node (#22847) 2024-03-11 15:49:43 -07:00
ipc.rs fix(node): Create additional pipes for child processes (#25016) 2024-08-15 09:38:46 -07:00
mod.rs feat: vm rewrite (#24596) 2024-08-06 12:52:53 +00:00
process.rs fix(ext/node): implement process.kill in Rust (#23130) 2024-04-20 18:55:07 +05:30
require.rs perf(ext/node): reduce some allocations in require (#25197) 2024-08-26 11:13:39 -04:00
util.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
v8.rs feat: Upgrade V8 to 12.9 (#25138) 2024-08-21 22:33:21 +00:00
vm.rs feat: Upgrade V8 to 12.9 (#25138) 2024-08-21 22:33:21 +00:00
vm_internal.rs feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
winerror.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
worker_threads.rs refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00