axios
axios copied to clipboard
Connection Timeout
Describe the issue
Hi, i need to measure how long it takes Axios to connect to service, becasue we are having timeouts, but i cant difference if the service takes too long, or if se services nerver accepts the connection.
Thanks
Example Code
Expected behavior
No response
Axios Version
No response
Adapter Version
No response
Browser
No response
Browser Version
No response
Node.js Version
No response
OS
No response
Additional Library Versions
Additional context/Screenshots
To determine whether the issue is a slow server response or a problem with the connection itself, you can try using the Performance API to get detailed network request timings. You can refer to the provided link for more details. Performance API
i would like to be able to do this configuration: connectionTimeout: 2_000 and timeout:50_000, if the servers attend me, i would like to wait 50_000, but if the server is busy and dosent attend me, i like to fail fast (2_000) and switch to another server.
Am i explaning myself clear?
I am wondering, why this PR (https://github.com/jayenashar/axios/pull/1/files) was discarded?
+1