mirror of
https://github.com/nginx/nginx.git
synced 2026-09-11 16:18:23 +00:00
HTTP/2: lingering close changed to handle NGX_AGAIN.
This part somehow slipped away from c5840ca2063d. While it is not expected to be needed in case of lingering close, it is good to keep it for correctness (see 2b5528023f6b).
This commit is contained in:
parent
56f5331683
commit
327e21c432
1 changed files with 4 additions and 0 deletions
|
|
@ -807,6 +807,10 @@ ngx_http_v2_lingering_close_handler(ngx_event_t *rev)
|
|||
|
||||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, c->log, 0, "lingering read: %z", n);
|
||||
|
||||
if (n == NGX_AGAIN) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (n == NGX_ERROR || n == 0) {
|
||||
ngx_http_close_connection(c);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue