diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-12-21 17:35:13 +0000 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-12-21 17:35:13 +0000 |
commit | 52d0bf620a964bbb51bd7ff87e778ba72164b802 (patch) | |
tree | e5fb6b04264d0b73c925cf5013f60312afa0b1b4 /src/http/ngx_http_request.c | |
parent | 7bac596afb31344cf40c93d8ae1ce87d2b6c76c1 (diff) | |
download | nginx-52d0bf620a964bbb51bd7ff87e778ba72164b802.tar.gz nginx-52d0bf620a964bbb51bd7ff87e778ba72164b802.zip |
HTTP/3: removed HTTP/3-specific code.
The ngx_http_set_lingering_close() function is not called for HTTP/3.
The change reduces diff to the default branch.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index abcc1bba8..b747b0206 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -3451,13 +3451,11 @@ ngx_http_set_lingering_close(ngx_connection_t *c) } } - if (c->fd != NGX_INVALID_FILE) { - if (ngx_shutdown_socket(c->fd, NGX_WRITE_SHUTDOWN) == -1) { - ngx_connection_error(c, ngx_socket_errno, - ngx_shutdown_socket_n " failed"); - ngx_http_close_request(r, 0); - return; - } + if (ngx_shutdown_socket(c->fd, NGX_WRITE_SHUTDOWN) == -1) { + ngx_connection_error(c, ngx_socket_errno, + ngx_shutdown_socket_n " failed"); + ngx_http_close_request(r, 0); + return; } ngx_add_timer(rev, clcf->lingering_timeout); |