Saturday 11 March 2017

request npm module - resolve ESOCKETTIMEDOUT

I am using request npm module and making upstream requests in a loop approx 100 requests per second. The timeout has been set to 10 seconds. Problem is I keep getting ESOCKETTIMEDOUT for 1 out of 1000 requests consistently.

I am pretty sure that upstream server is not timing out. What could be the reason of this and how to avoid it.



via user27111987

No comments:

Post a Comment