Klaus Demo nginx / ec0b579
update connection readiness after SSL handshake, this fixes mail proxy SSL connection hanging if level-triggered event is used Igor Sysoev 13 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
503503 ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_do_handshake: %d", n);
504504
505505 if (n == 1) {
506
507 c->read->ready = 0;
508 c->write->ready = 1;
506509
507510 if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
508511 return NGX_ERROR;