mirror of https://github.com/adamdruppe/arsd.git
fix immproper assert error on graceful 1.0 close
This commit is contained in:
parent
5d23e35393
commit
d4a962d5da
3
http2.d
3
http2.d
|
@ -1017,7 +1017,8 @@ class HttpRequest {
|
|||
} else if(got == 0) {
|
||||
// remote side disconnected
|
||||
debug(arsd_http2) writeln("remote disconnect");
|
||||
request.state = State.aborted;
|
||||
if(request.state != State.complete)
|
||||
request.state = State.aborted;
|
||||
inactive[inactiveCount++] = sock;
|
||||
sock.close();
|
||||
loseSocket(request.requestParameters.host, request.requestParameters.port, request.requestParameters.ssl, sock);
|
||||
|
|
Loading…
Reference in New Issue