update connection readiness after SSL handshake,
this fixes mail proxy SSL connection hanging if level-triggered event is used
Igor Sysoev
13 years ago
503 | 503 |
ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_do_handshake: %d", n);
|
504 | 504 |
|
505 | 505 |
if (n == 1) {
|
|
506 |
|
|
507 |
c->read->ready = 0;
|
|
508 |
c->write->ready = 1;
|
506 | 509 |
|
507 | 510 |
if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
|
508 | 511 |
return NGX_ERROR;
|