fix immproper assert error on graceful 1.0 close

This commit is contained in:
Adam D. Ruppe 2020-02-18 09:31:09 -05:00
parent 5d23e35393
commit d4a962d5da
1 changed files with 2 additions and 1 deletions

View File

@ -1017,6 +1017,7 @@ class HttpRequest {
} else if(got == 0) {
// remote side disconnected
debug(arsd_http2) writeln("remote disconnect");
if(request.state != State.complete)
request.state = State.aborted;
inactive[inactiveCount++] = sock;
sock.close();