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:
parent
4fe4a1be5e
commit
54694b3165
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue