Skip to content

Commit

Permalink
fix: skip when running and keep alive
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 5, 2020
1 parent 1c628a9 commit 90ac7b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/core/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,11 @@ function _resume (client, sync) {
return
}

if (client.running && !client[kKeepAlive]) {
// Don't schedule more if we know connection will reset.
return
}

if (client.running && !request.idempotent) {
// Non-idempotent request cannot be retried.
// Ensure that no other requests are inflight and
Expand Down

0 comments on commit 90ac7b6

Please sign in to comment.