should trigger the complete handler consistently

This commit is contained in:
Adam D. Ruppe 2023-12-29 12:15:47 -05:00
parent 15a29d49dd
commit dfeae3c53c
1 changed files with 0 additions and 2 deletions

View File

@ -2042,13 +2042,11 @@ class HttpRequest {
inactive[inactiveCount++] = sock;
sock.close();
loseSocket(request.requestParameters.host, request.requestParameters.port, request.requestParameters.ssl, sock);
continue;
}
if(!stillAlive || request.state == HttpRequest.State.complete || request.state == HttpRequest.State.aborted) {
//import std.stdio; writeln(cast(void*) sock, " ", stillAlive, " ", request.state);
inactive[inactiveCount++] = sock;
continue;
// reuse the socket for another pending request, if we can
}
}