1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests
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
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi refactor(ext): align error messages (#25310) 2024-09-04 09:23:19 +02:00
integration BREAKING(config): make supported compilerOptions an allow list (#25432) 2024-09-04 17:39:30 +02:00
napi fix(napi): Fix worker threads importing already-loaded NAPI addon (#25245) 2024-08-28 10:33:47 -07:00
node_compat feat(cli): give access to process global everywhere (#25291) 2024-09-04 11:04:06 +02:00
registry fix(byonm): resolve npm deps of jsr deps (#25399) 2024-09-04 14:00:44 +00:00
specs fix(regression): do not expose resolved path in Deno.Command permission denied error (#25434) 2024-09-04 22:57:49 +00:00
testdata fix(regression): do not expose resolved path in Deno.Command permission denied error (#25434) 2024-09-04 22:57:49 +00:00
unit BREAKING(types): soft-remove Deno.run() (#25403) 2024-09-05 08:45:55 +10:00
unit_node fix(ext/node): close upgraded socket when the underlying http connection is closed (#25387) 2024-09-05 13:30:18 +09:00
util feat(lsp): html/css/yaml file formatting (#25353) 2024-09-02 18:27:25 +01:00
wpt chore: update WPT (#25250) 2024-09-03 23:15:34 -07:00
Cargo.toml feat: improve lockfile v4 to store normalized version constraints and be more terse (#25247) 2024-08-28 14:17:47 -04:00
lib.rs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests