Sending requests is pending until previous request done #5867
Replies: 2 comments
-
This is related to the max number of concurrent connections in a browser. E.g you can make 6 HTTP requests at any given time in Chrome. https://stackoverflow.com/questions/985431/max-parallel-http-connections-in-a-browser |
Beta Was this translation helpful? Give feedback.
-
can you verify your server can take multiple requests in parallel via |
Beta Was this translation helpful? Give feedback.
-
Describe the issue
When I make multiple request using axios ( continous enter or click ) they are queued immediately and script runs well. But actual http requests are pending until previous request responses.
My service takes several seconds to make response. So I have expected axios tosses them to secuce all and “.then()” continuously - Surely, sequence must not be concerned due asynchronous request.
Is there any way to make every proceeding request not to wait until getting response of previous request? My remote service runs on flask with threaded=True. Sever responses as I expected when I make multiple enter key on url bar, using axios on multiple “different kind of” browsers - not even multiple “same” browsers.
Example Code
Expected behavior
IN
IN
IN
IN
…
OUT <- Begin of response.
IN
OUT
OUT
OUT
OUT
IN
OUT
…
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
No response
Additional context/Screenshots
No response
Beta Was this translation helpful? Give feedback.
All reactions