comparison 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
comparison
equal deleted inserted replaced
1419:79f033a89dd4 1421:24778e7450af
701 return NGX_AGAIN; 701 return NGX_AGAIN;
702 } 702 }
703 703
704 c->ssl->no_wait_shutdown = 1; 704 c->ssl->no_wait_shutdown = 1;
705 c->ssl->no_send_shutdown = 1; 705 c->ssl->no_send_shutdown = 1;
706 c->read->ready = 0;
706 c->read->eof = 1; 707 c->read->eof = 1;
707 708
708 if (sslerr == SSL_ERROR_ZERO_RETURN || ERR_peek_error() == 0) { 709 if (sslerr == SSL_ERROR_ZERO_RETURN || ERR_peek_error() == 0) {
709 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, 710 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0,
710 "peer shutdown SSL cleanly"); 711 "peer shutdown SSL cleanly");