agentkeepalive: agentkeepalive detecting ECONNRESET

from Aryeh Schechter email:

Hello,

We recently started using agentkeepalive to pool our connections to aws and have been experiencing ECONNRESETs. We are using version 2.0.2 which has the fix for issue #23, but we are still getting these errors.

Why are you not listening for ‘error’ on the socket and handling it similar to ‘close’? This would allow for the ability to catch the ECONNRESETs and retry the request without the hassle of the requiring library to handle ‘uncaughtException’ and trying to figure out where it came from.

Thanks, Aryeh Schechter www.glide.me

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Reactions: 1
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Hello,

I have the same use case, using agentkeepalive together with aws/dynamodb. node10, about 6500 requests per minute per server and all 4 servers/applications ran into this error and didn’t continue working (but also didnt crash completely)

events.js:72         throw er; // Unhandled ‘error’ event               ^ Error: read ECONNRESET     at errnoException (net.js:905:11)     at TCP.onread (net.js:559:19)

is what I got from logs.