update connection readiness after SSL handshake,

this fixes mail proxy SSL connection hanging if level-triggered event is used
This commit is contained in:
Igor Sysoev 2008-07-30 06:12:30 +00:00
parent 0f17f6ce9f
commit ec0b579f75

View File

@ -505,6 +505,9 @@ ngx_ssl_handshake(ngx_connection_t *c)
if (n == 1) {
c->read->ready = 0;
c->write->ready = 1;
if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {
return NGX_ERROR;
}