This commit is contained in:
Adam D. Ruppe 2021-07-28 22:24:49 -04:00
parent 39b0cfeefd
commit d41995d042
1 changed files with 12 additions and 0 deletions

12
http2.d
View File

@ -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) {