Commit da2f3be
fix: close all proxy connections before closing server in test afterAll
In undici v8, ProxyAgent defaults proxyTunnel to true, which means
CONNECT tunneling is used even for HTTP-to-HTTP proxy requests.
These tunnel connections keep the proxy server alive, preventing
proxyServer.close() from completing within the 10s afterAll timeout.
Adding proxyServer.closeAllConnections() before proxyServer.close()
forcefully terminates the tunnel connections and allows cleanup.
Agent-Logs-Url: https://github.com/node-modules/urllib/sessions/4c3edcc4-7c2f-4451-b8f8-b324a333958d
Co-authored-by: fengmk2 <156269+fengmk2@users.noreply.github.com>1 parent 34e1186 commit da2f3be
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments