mirror of
https://github.com/nginx/nginx.git
synced 2025-06-18 10:16:27 +08:00
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
7bac596afb
commit
52d0bf620a
@ -3451,14 +3451,12 @@ 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) {
|
if (ngx_shutdown_socket(c->fd, NGX_WRITE_SHUTDOWN) == -1) {
|
||||||
ngx_connection_error(c, ngx_socket_errno,
|
ngx_connection_error(c, ngx_socket_errno,
|
||||||
ngx_shutdown_socket_n " failed");
|
ngx_shutdown_socket_n " failed");
|
||||||
ngx_http_close_request(r, 0);
|
ngx_http_close_request(r, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ngx_add_timer(rev, clcf->lingering_timeout);
|
ngx_add_timer(rev, clcf->lingering_timeout);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user