mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -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 |
||
---|---|---|
.. | ||
benchmarks | ||
ops | ||
polyfills | ||
build.rs | ||
Cargo.toml | ||
clippy.toml | ||
global.rs | ||
lib.rs | ||
polyfill.rs | ||
README.md |
deno_node
require
and other node related functionality for Deno.