mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
reset ready flag if no data is available,
this fixes endless loop at least in lingering close
This commit is contained in:
parent
ac5deaa906
commit
c463ece9d7
@ -41,6 +41,7 @@ ngx_unix_recv(ngx_connection_t *c, u_char *buf, size_t size)
|
||||
return 0;
|
||||
|
||||
} else {
|
||||
rev->ready = 0;
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user