]> git.kaiwu.me - nginx.git/commit
HTTP/2: graceful shutdown of active connections (closes #1106).
authorValentin Bartenev <vbart@nginx.com>
Thu, 20 Oct 2016 13:15:03 +0000 (16:15 +0300)
committerValentin Bartenev <vbart@nginx.com>
Thu, 20 Oct 2016 13:15:03 +0000 (16:15 +0300)
commit70d0530f8844205cfd78d71f4f0bf20843af778e
treef4161a615de27b06bf2f454d61d977309f77c106
parent9b8b33bd4a3f44a4d1a23b7fba09a014e0fcc5ab
HTTP/2: graceful shutdown of active connections (closes #1106).

Previously, while shutting down gracefully, the HTTP/2 connections were
closed in transition to idle state after all active streams have been
processed.  That might never happen if the client continued opening new
streams.

Now, nginx sends GOAWAY to all HTTP/2 connections and ignores further
attempts to open new streams.  A worker process will quit as soon as
processing of already opened streams is finished.
src/http/v2/ngx_http_v2.c
src/http/v2/ngx_http_v2.h