From d41995d04279481513dc7127382087e570e8ec97 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 28 Jul 2021 22:24:49 -0400 Subject: [PATCH] bug fix --- http2.d | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/http2.d b/http2.d index 4d65518..ecd7447 100644 --- a/http2.d +++ b/http2.d @@ -1469,6 +1469,18 @@ class HttpRequest { removeFromPending[removeFromPendingCount++] = pc; continue; + } catch(Exception e) { + // connection failed due to other user error + pc.state = HttpRequest.State.aborted; + + pc.responseData.code = 2; + pc.responseData.codeText = e.msg; + + hadAbortedRequest = true; + + removeFromPending[removeFromPendingCount++] = pc; + continue; + } if(socket !is null) {