From c7df65309b79514e68b1fce4e1c934104a8ca67e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 19 Mar 2017 13:24:12 +0900 Subject: [PATCH] nghttpx: Ignore further input if connection is going to close --- src/shrpx_https_upstream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_https_upstream.cc b/src/shrpx_https_upstream.cc index fbb6cb7e..92e3c1b4 100644 --- a/src/shrpx_https_upstream.cc +++ b/src/shrpx_https_upstream.cc @@ -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; }