deno
3403492d - fix(ext/node): retry stale keepAlive connections in http client (#31932)

Commit
278 days ago
fix(ext/node): retry stale keepAlive connections in http client (#31932) Closes https://github.com/denoland/deno/issues/31891 When a server closes an idle keepAlive connection, the client's HTTP agent may still have the socket pooled. Attempting to reuse this stale socket results in ECONNRESET ("socket hang up"). This matches Node.js behavior by transparently retrying the request on a fresh connection when a reused socket encounters a stale connection error.
Author
Parents
Loading