1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/ext
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
..
broadcast_channel chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
cache chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
canvas chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
console chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
cron chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
crypto chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
fetch chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
ffi chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
fs chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
http chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
io chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
kv chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
napi chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
net chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
node fix(ext/node): close upgraded socket when the underlying http connection is closed (#25387) 2024-09-05 13:30:18 +09:00
node_resolver chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
tls chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
url chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
web chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
webgpu chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
webidl chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
websocket chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
webstorage chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00