Welcome! Log In Create A New Profile

Advanced

[nginx] HTTP/2: always send GOAWAY while worker is shutting down.

Valentin Bartenev
July 19, 2016 01:28PM
details: http://hg.nginx.org/nginx/rev/ea284434db0f
branches:
changeset: 6636:ea284434db0f
user: Valentin Bartenev <vbart@nginx.com>
date: Tue Jul 19 20:22:44 2016 +0300
description:
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.

diffstat:

src/http/v2/ngx_http_v2.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6acaa638fa07 -r ea284434db0f src/http/v2/ngx_http_v2.c
--- a/src/http/v2/ngx_http_v2.c Fri Jul 15 15:18:57 2016 +0300
+++ b/src/http/v2/ngx_http_v2.c Tue Jul 19 20:22:44 2016 +0300
@@ -615,7 +615,7 @@ ngx_http_v2_handle_connection(ngx_http_v
}

if (ngx_terminate || ngx_exiting) {
- ngx_http_close_connection(c);
+ ngx_http_v2_finalize_connection(h2c, NGX_HTTP_V2_NO_ERROR);
return;
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] HTTP/2: always send GOAWAY while worker is shutting down.

Valentin Bartenev 683 July 19, 2016 01:28PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 228
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready