]> git.kaiwu.me - nginx.git/commit
SSL: fixed c->read->ready handling in ngx_ssl_recv().
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Nov 2013 13:16:06 +0000 (17:16 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Nov 2013 13:16:06 +0000 (17:16 +0400)
commit067c1d2a4f48cbbaace59733c98007b793719f94
treede7d396aa8de91c7cd9e025ca75f4e27105fb453
parent6b7e88f36b2564b91fe68b1a5628d52a24384343
SSL: fixed c->read->ready handling in ngx_ssl_recv().

If c->read->ready was reset, but later some data were read from a socket
buffer due to a call to ngx_ssl_recv(), the c->read->ready flag should
be restored if not all data were read from OpenSSL buffers (as kernel
won't notify us about the data anymore).

More details are available here:
http://mailman.nginx.org/pipermail/nginx/2013-November/041178.html
src/event/ngx_event_openssl.c