Mercurial > hg > nginx
comparison src/http/v2/ngx_http_v2.c @ 6759:ee43fa9aff66 stable-1.10
HTTP/2: always send GOAWAY while worker is shutting down.
Previously, if the worker process exited, GOAWAY was sent to connections in
idle state, but connections with active streams were closed without GOAWAY.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Tue, 19 Jul 2016 20:22:44 +0300 |
parents | e2f13011343e |
children | 82efcedb310b |
comparison
equal
deleted
inserted
replaced
6758:de636b710cb1 | 6759:ee43fa9aff66 |
---|---|
613 ngx_add_timer(c->read, h2scf->recv_timeout); | 613 ngx_add_timer(c->read, h2scf->recv_timeout); |
614 return; | 614 return; |
615 } | 615 } |
616 | 616 |
617 if (ngx_terminate || ngx_exiting) { | 617 if (ngx_terminate || ngx_exiting) { |
618 ngx_http_close_connection(c); | 618 ngx_http_v2_finalize_connection(h2c, NGX_HTTP_V2_NO_ERROR); |
619 return; | 619 return; |
620 } | 620 } |
621 | 621 |
622 ngx_destroy_pool(h2c->pool); | 622 ngx_destroy_pool(h2c->pool); |
623 | 623 |