Requests to my express app gets handled in a sync way (instead of async) #5875
VenkatSaiVikram
started this conversation in
General
Replies: 2 comments
-
This was my sample code. I kept the timeout fixed and the request did not wait. The same should be the case for random timeouts too. Please recheck. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my basic express app. When I start the server and hit localhost:3001 in my browser for the first time(lets say 8 seconds) it waits for 8 seconds before sending the response.. but if i hit the same request in another tab (irrespective of the random timeout generated), my second request waits until the first one completes and then gets resolved..
Any issues with my code? or am I missing something?
node version - 18.14.2 & npm version - 9.5.0
Beta Was this translation helpful? Give feedback.
All reactions