nghttpx: Fix bug that send_reply does not participate graceful shutdown
This commit is contained in:
parent
9d16292fe4
commit
0c8b1a4f74
|
@ -878,7 +878,7 @@ int HttpsUpstream::send_reply(Downstream *downstream, const uint8_t *body,
|
||||||
|
|
||||||
auto worker = handler_->get_worker();
|
auto worker = handler_->get_worker();
|
||||||
|
|
||||||
if (httpconf.max_requests <= num_requests_ &&
|
if (httpconf.max_requests <= num_requests_ ||
|
||||||
worker->get_graceful_shutdown()) {
|
worker->get_graceful_shutdown()) {
|
||||||
resp.fs.add_header_token(StringRef::from_lit("connection"),
|
resp.fs.add_header_token(StringRef::from_lit("connection"),
|
||||||
StringRef::from_lit("close"), false,
|
StringRef::from_lit("close"), false,
|
||||||
|
|
Loading…
Reference in New Issue