nghttpx: Ignore further input if connection is going to close

This commit is contained in:
Tatsuhiro Tsujikawa 2017-03-19 13:24:12 +09:00
parent 26900262f3
commit c7df65309b
1 changed files with 1 additions and 1 deletions

View File

@ -542,7 +542,7 @@ int HttpsUpstream::on_read() {
auto rlimit = handler_->get_rlimit();
auto downstream = get_downstream();
if (rb->rleft() == 0) {
if (rb->rleft() == 0 || handler_->get_should_close_after_write()) {
return 0;
}