]> git.kaiwu.me - nginx.git/commit
Events: fixed eventport handling in ngx_handle_read_event().
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 5 Mar 2021 14:16:15 +0000 (17:16 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 5 Mar 2021 14:16:15 +0000 (17:16 +0300)
commitd5a31fdad50dbd28974cb0eb7f23948241a7559e
tree859901108dc39b8c4f5b123c4e2443928bd50433
parent797ac536fe2cc0a311a72ddb861784f320991beb
Events: fixed eventport handling in ngx_handle_read_event().

The "!rev->ready" test seems to be a typo, introduced in the original
commit (719:f30b1a75fd3b).  The ngx_handle_write_event() code properly
tests for "rev->ready" instead.

Due to this typo, read events might be unexpectedly removed during
proxying after an event on the other part of the proxied connection.
Catched by mail proxying tests.
src/event/ngx_event.c