aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_ssl_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2023-03-24 02:53:21 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2023-03-24 02:53:21 +0300
commit2ca4355bf02ab454d6f216dab142816a626d7547 (patch)
tree34ef1c779081a561ee795846a18a4299b7226049 /src/stream/ngx_stream_ssl_module.c
parent11ed95bb53210c322c16bb0897f0cb3b5726ed57 (diff)
downloadnginx-2ca4355bf02ab454d6f216dab142816a626d7547.tar.gz
nginx-2ca4355bf02ab454d6f216dab142816a626d7547.zip
Mail: fixed handling of blocked client read events in proxy.
When establishing a connection to the backend, nginx blocks reading from the client with ngx_mail_proxy_block_read(). Previously, such events were lost, and in some cases this resulted in connection hangs. Notably, this affected mail_imap_ssl.t on Windows, since the test closes connections after requesting authentication, but without waiting for any responses (so the connection close events might be lost). Fix is to post an event to read from the client after connecting to the backend if there were blocked events.
Diffstat (limited to 'src/stream/ngx_stream_ssl_module.c')
0 files changed, 0 insertions, 0 deletions