diff src/event/ngx_event_openssl.c @ 1421:24778e7450af

mark connection as not ready, this fixes endless loop introduced in r1368
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Aug 2007 15:01:08 +0000
parents f69d1aab6a0f
children adbafd129d06
line wrap: on
line diff
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -703,6 +703,7 @@ ngx_ssl_handle_recv(ngx_connection_t *c,
 
     c->ssl->no_wait_shutdown = 1;
     c->ssl->no_send_shutdown = 1;
+    c->read->ready = 0;
     c->read->eof = 1;
 
     if (sslerr == SSL_ERROR_ZERO_RETURN || ERR_peek_error() == 0) {