mirror of
https://github.com/nginx/nginx.git
synced 2025-08-05 22:26:15 +08:00
HTTP/3: do not call shutdown() for QUIC streams.
Previously, this triggered an alert "shutdown() failed" in error log.
This commit is contained in:
parent
3073ad1381
commit
cdc0d61ea0
@ -3504,11 +3504,13 @@ ngx_http_set_lingering_close(ngx_http_request_t *r)
|
||||
}
|
||||
}
|
||||
|
||||
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 (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 (rev->ready) {
|
||||
|
Loading…
Reference in New Issue
Block a user