From 90ac7b6cb06545b813b1839204ff2dfceee391bd Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 5 Oct 2020 13:53:38 +0200 Subject: [PATCH] fix: skip when running and keep alive --- lib/core/client.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/core/client.js b/lib/core/client.js index 5e30d63a0bb..9f8b93c81d4 100644 --- a/lib/core/client.js +++ b/lib/core/client.js @@ -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