]> 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)
commit8c520c96212bb53fed4656f9e2bcc774c957e795
tree3481a4ed6dd3577402dabacd4a797ca846299fc3
parent4891ba59d809133470636671f6714733b9484899
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