[JS] add ETIMEDOUT to retry criteria. Fixes
When doing HTTP requests we may get a timeout for that command,
this allows us to retry those commands.
@@ -296,7 +296,8 @@ function isRetryableNetworkError(err) {
err.code === 'ECONNRESET' ||
err.code === 'ECONNREFUSED' ||
err.code === 'EADDRINUSE' ||
- err.code === 'EPIPE';
+ err.code === 'EPIPE',
+ err.code === 'ETIMEDOUT';
}
return false;
