nghttpx: Fix hang when error page is sent on response phase hook error

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-04 22:34:40 +09:00
parent 4ad00200a2
commit a9338f1c0e
2 changed files with 2 additions and 0 deletions

View File

@ -929,6 +929,7 @@ int Http2Upstream::downstream_read(DownstreamConnection *dconn) {
} }
if (rv == SHRPX_ERR_DCONN_CANCELED) { if (rv == SHRPX_ERR_DCONN_CANCELED) {
downstream->pop_downstream_connection(); downstream->pop_downstream_connection();
handler_->signal_write();
return 0; return 0;
} }
if (rv != 0) { if (rv != 0) {

View File

@ -602,6 +602,7 @@ int SpdyUpstream::downstream_read(DownstreamConnection *dconn) {
} }
if (rv == SHRPX_ERR_DCONN_CANCELED) { if (rv == SHRPX_ERR_DCONN_CANCELED) {
downstream->pop_downstream_connection(); downstream->pop_downstream_connection();
handler_->signal_write();
return 0; return 0;
} }
if (rv != 0) { if (rv != 0) {