Merge pull request #308 from kingbirdogd/master

fixed http2 timeout
This commit is contained in:
Adam D. Ruppe 2021-11-16 09:20:22 -05:00 committed by GitHub
commit 83c9a3150a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1142,7 +1142,7 @@ class HttpRequest {
}
if(advance)
HttpRequest.advanceConnections();
HttpRequest.advanceConnections(requestParameters.timeoutFromInactivity);
}
@ -1153,7 +1153,7 @@ class HttpRequest {
send();
continue;
}
if(auto err = HttpRequest.advanceConnections()) {
if(auto err = HttpRequest.advanceConnections(requestParameters.timeoutFromInactivity)) {
switch(err) {
case 1: throw new Exception("HttpRequest.advanceConnections returned 1: all connections timed out");
case 2: throw new Exception("HttpRequest.advanceConnections returned 2: nothing to do");