2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix(http): fix 'socket hang up' bug for keep-alive requests when using timeouts; (#7206)

This commit is contained in:
Dmitriy Mozgovoy
2025-11-04 01:08:35 +02:00
committed by GitHub
parent 12c314b603
commit 8d372335f5
2 changed files with 18 additions and 0 deletions
+3
View File
@@ -858,6 +858,9 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
req
));
});
} else {
// explicitly reset the socket timeout value for a possible `keep-alive` request
req.setTimeout(0);
}