Skip to content

Commit

Permalink
[js] retry requests on EPIPE error
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyba committed Jan 13, 2018
1 parent 7046e64 commit c41f9ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javascript/node/selenium-webdriver/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ function isRetryableNetworkError(err) {
if (err && err.code) {
return err.code === 'ECONNABORTED' ||
err.code === 'ECONNRESET' ||
err.code === 'EADDRINUSE';
err.code === 'EADDRINUSE' ||
err.code === 'EPIPE';
}

return false;
Expand Down

0 comments on commit c41f9ef

Please sign in to comment.