]> git.kaiwu.me - nginx.git/commit
Upstream: fixed non-buffered proxying with eventport.
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 28 Mar 2021 14:45:35 +0000 (17:45 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Sun, 28 Mar 2021 14:45:35 +0000 (17:45 +0300)
commit9104757a7d9adfced7c77396167e3e68bd11867c
tree64338a99d76c1437c4b05413528c952033358750
parentcb9fca08465a90a46a8a5143c58b994c3419b49c
Upstream: fixed non-buffered proxying with eventport.

For new data to be reported with eventport on Solaris,
ngx_handle_read_event() needs to be called after reading response
headers.  To do so, ngx_http_upstream_process_non_buffered_upstream()
now called unconditionally if there are no prepread data.  This
won't cause any read() syscalls as long as upstream connection
is not ready for reading (c->read->ready is not set), but will result
in proper handling of all events.
src/http/ngx_http_upstream.c