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.
This commit is contained in:
Roman Arutyunyan 2020-12-21 17:35:13 +00:00
parent 7bac596afb
commit 52d0bf620a

View File

@ -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);