nghttpx: Fix bug that send_reply does not participate graceful shutdown

This commit is contained in:
Tatsuhiro Tsujikawa 2017-02-21 21:27:57 +09:00
parent 9d16292fe4
commit 0c8b1a4f74
1 changed files with 1 additions and 1 deletions

View File

@ -878,7 +878,7 @@ int HttpsUpstream::send_reply(Downstream *downstream, const uint8_t *body,
auto worker = handler_->get_worker();
if (httpconf.max_requests <= num_requests_ &&
if (httpconf.max_requests <= num_requests_ ||
worker->get_graceful_shutdown()) {
resp.fs.add_header_token(StringRef::from_lit("connection"),
StringRef::from_lit("close"), false,