Commit c7df6530 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Ignore further input if connection is going to close

parent 26900262
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment