comparison src/http/v2/ngx_http_v2.h @ 6889:09cf90250844 stable-1.10

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.
author Valentin Bartenev <vbart@nginx.com>
date Thu, 20 Oct 2016 16:15:03 +0300
parents cb330cd39030
children 749bcfdf097a
comparison
equal deleted inserted replaced
6888:70539dd7abe5 6889:09cf90250844
144 ngx_uint_t last_sid; 144 ngx_uint_t last_sid;
145 145
146 unsigned closed_nodes:8; 146 unsigned closed_nodes:8;
147 unsigned settings_ack:1; 147 unsigned settings_ack:1;
148 unsigned blocked:1; 148 unsigned blocked:1;
149 unsigned goaway:1;
149 }; 150 };
150 151
151 152
152 struct ngx_http_v2_node_s { 153 struct ngx_http_v2_node_s {
153 ngx_uint_t id; 154 ngx_uint_t id;