diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2019-12-27 19:43:01 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2019-12-27 19:43:01 +0300 |
commit | fb34316d68511bd0986d3153dfea93d21363016d (patch) | |
tree | 856ad57f9a377a3034fe8f553e8cf507a7c639f2 /src/core/nginx.h | |
parent | 8ca5cab66329feea2352b9b705dd107378363596 (diff) | |
download | nginx-fb34316d68511bd0986d3153dfea93d21363016d.tar.gz nginx-fb34316d68511bd0986d3153dfea93d21363016d.zip |
SSL: reworked posted next events again.
Previous change 1ce3f01a4355 incorrectly introduced processing of the
ngx_posted_next_events queue at the end of operation, effectively making
posted next events a nop, since at the end of an event loop iteration
the queue is always empty. Correct approach is to move events to the
ngx_posted_events queue at an iteration start, as it was done previously.
Further, in some cases the c->read event might be already in the
ngx_posted_events queue, and calling ngx_post_event() with the
ngx_posted_next_events queue won't do anything. To make sure the event
will be correctly placed into the ngx_posted_next_events queue
we now check if it is already posted.
Diffstat (limited to 'src/core/nginx.h')
0 files changed, 0 insertions, 0 deletions