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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user