SSL connection readiness is required for level-triggered events only,

broken in r2128
This commit is contained in:
Igor Sysoev 2008-08-11 15:25:40 +00:00
parent 2ec5d3dbe8
commit 5eb3a4f909
1 changed files with 4 additions and 1 deletions

View File

@ -505,7 +505,10 @@ ngx_ssl_handshake(ngx_connection_t *c)
if (n == 1) {
c->read->ready = 0;
if (ngx_event_flags & NGX_USE_LEVEL_EVENT) {
c->read->ready = 0;
}
c->write->ready = 1;
if (ngx_handle_read_event(c->read, 0) == NGX_ERROR) {