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
1
http2.d
1
http2.d
|
@ -1017,6 +1017,7 @@ class HttpRequest {
|
||||||
} else if(got == 0) {
|
} else if(got == 0) {
|
||||||
// remote side disconnected
|
// remote side disconnected
|
||||||
debug(arsd_http2) writeln("remote disconnect");
|
debug(arsd_http2) writeln("remote disconnect");
|
||||||
|
if(request.state != State.complete)
|
||||||
request.state = State.aborted;
|
request.state = State.aborted;
|
||||||
inactive[inactiveCount++] = sock;
|
inactive[inactiveCount++] = sock;
|
||||||
sock.close();
|
sock.close();
|
||||||
|
|
Loading…
Reference in New Issue