mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +08:00
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.
This commit is contained in:
parent
797ac536fe
commit
d5a31fdad5
@ -318,7 +318,7 @@ ngx_handle_read_event(ngx_event_t *rev, ngx_uint_t flags)
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
if (rev->oneshot && !rev->ready) {
|
||||
if (rev->oneshot && rev->ready) {
|
||||
if (ngx_del_event(rev, NGX_READ_EVENT, 0) == NGX_ERROR) {
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user