mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -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 |
||
---|---|---|
.. | ||
crypto | ||
os | ||
zlib | ||
blocklist.rs | ||
buffer.rs | ||
fs.rs | ||
http.rs | ||
http2.rs | ||
idna.rs | ||
ipc.rs | ||
mod.rs | ||
process.rs | ||
require.rs | ||
util.rs | ||
v8.rs | ||
vm.rs | ||
vm_internal.rs | ||
winerror.rs | ||
worker_threads.rs |