mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
186f7484da
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 |
||
---|---|---|
.. | ||
config | ||
ffi | ||
integration | ||
napi | ||
node_compat | ||
registry | ||
specs | ||
testdata | ||
unit | ||
unit_node | ||
util | ||
wpt | ||
Cargo.toml | ||
lib.rs | ||
README.md |