Mercurial > hg > nginx-quic
diff src/event/ngx_event_openssl.c @ 445:f26432a1935a
nginx-0.1.0-2004-09-30-10:38:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Sep 2004 06:38:49 +0000 |
parents | 42d11f017717 |
children | 23fb87bddda1 |
line wrap: on
line diff
--- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -82,11 +82,14 @@ ngx_int_t ngx_ssl_recv(ngx_connection_t return NGX_AGAIN; } + if (sslerr == SSL_ERROR_WANT_WRITE) { + ngx_log_error(NGX_LOG_ALERT, c->log, err, + "SSL wants to write%s", handshake); + return NGX_ERROR; #if 0 - if (sslerr == SSL_ERROR_WANT_WRITE) { return NGX_AGAIN; +#endif } -#endif if (!SSL_is_init_finished(c->ssl->ssl)) { handshake = "in SSL handshake"; @@ -261,8 +264,11 @@ static ngx_int_t ngx_ssl_write(ngx_conne return NGX_AGAIN; } + if (sslerr == SSL_ERROR_WANT_READ) { + ngx_log_error(NGX_LOG_ALERT, c->log, err, + "SSL wants to read%s", handshake); + return NGX_ERROR; #if 0 - if (sslerr == SSL_ERROR_WANT_READ) { return NGX_AGAIN; } #endif