comparison src/http/v2/ngx_http_v2.h @ 6778:5e95b9fb33b7

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 ad736705a744
children 3834951e32ab
comparison
equal deleted inserted replaced
6777:563a1ee345a4 6778:5e95b9fb33b7
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;