test: allow half-open CONNECT tunnel sockets · nodejs/node@7074ae3 · GitHub
Skip to content

Commit 7074ae3

Browse files
trivikraduh95
authored andcommitted
test: allow half-open CONNECT tunnel sockets
CONNECT tunnels are full-duplex. When the upstream socket receives a FIN while the client-to-upstream pipe is still draining, the default socket behavior can produce EPIPE or ECONNRESET errors. Keep the upstream socket half-open so both directions can drain. Separate request logs from transport errors to verify that teardown completes without errors. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: codex:gpt-5.6-sol PR-URL: #64973 Refs: https://github.com/nodejs/reliability/issues?q=%22test-https-proxy-request-invalid-char-in-url%22 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 7f31f62 commit 7074ae3

2 files changed

Lines changed: 12 additions & 14 deletions

File tree

test/client-proxy/test-https-proxy-request-invalid-char-in-url.mjs

Lines changed: 4 additions & 13 deletions

test/common/proxy-server.js

Lines changed: 8 additions & 1 deletion

0 commit comments

Comments
 (0)