test: guard write to proxy client if proxy connection is ended · nodejs/node@8f32746 · GitHub
Skip to content

Commit 8f32746

Browse files
joyeecheungtargos
authored andcommitted
test: guard write to proxy client if proxy connection is ended
In the testing proxy server for proxy client tests, the proxy client might have already closed the connection when the upstream connection fails. In that case, there's no need for the proxy server to inform the proxy client about the error. PR-URL: #59742 Fixes: #59741 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 728472a commit 8f32746

2 files changed

Lines changed: 25 additions & 15 deletions

File tree

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

Lines changed: 16 additions & 10 deletions

test/common/proxy-server.js

Lines changed: 9 additions & 5 deletions

0 commit comments

Comments
 (0)