Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
444:42d11f017717 | 445:f26432a1935a |
---|---|
80 | 80 |
81 if (sslerr == SSL_ERROR_WANT_READ) { | 81 if (sslerr == SSL_ERROR_WANT_READ) { |
82 return NGX_AGAIN; | 82 return NGX_AGAIN; |
83 } | 83 } |
84 | 84 |
85 if (sslerr == SSL_ERROR_WANT_WRITE) { | |
86 ngx_log_error(NGX_LOG_ALERT, c->log, err, | |
87 "SSL wants to write%s", handshake); | |
88 return NGX_ERROR; | |
85 #if 0 | 89 #if 0 |
86 if (sslerr == SSL_ERROR_WANT_WRITE) { | 90 return NGX_AGAIN; |
87 return NGX_AGAIN; | |
88 } | |
89 #endif | 91 #endif |
92 } | |
90 | 93 |
91 if (!SSL_is_init_finished(c->ssl->ssl)) { | 94 if (!SSL_is_init_finished(c->ssl->ssl)) { |
92 handshake = "in SSL handshake"; | 95 handshake = "in SSL handshake"; |
93 | 96 |
94 } else { | 97 } else { |
259 if (sslerr == SSL_ERROR_WANT_WRITE) { | 262 if (sslerr == SSL_ERROR_WANT_WRITE) { |
260 c->write->ready = 0; | 263 c->write->ready = 0; |
261 return NGX_AGAIN; | 264 return NGX_AGAIN; |
262 } | 265 } |
263 | 266 |
267 if (sslerr == SSL_ERROR_WANT_READ) { | |
268 ngx_log_error(NGX_LOG_ALERT, c->log, err, | |
269 "SSL wants to read%s", handshake); | |
270 return NGX_ERROR; | |
264 #if 0 | 271 #if 0 |
265 if (sslerr == SSL_ERROR_WANT_READ) { | |
266 return NGX_AGAIN; | 272 return NGX_AGAIN; |
267 } | 273 } |
268 #endif | 274 #endif |
269 | 275 |
270 c->ssl->no_rcv_shut = 1; | 276 c->ssl->no_rcv_shut = 1; |