diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-07-30 10:12:30 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-07-30 10:12:30 +0400 |
commit | ec0b579f7521608e3dabc1635ead8ed11ab1a7be (patch) | |
tree | fc5277f51de5fcdba5ce9fe599e3cbf8ef5837a0 | |
parent | 0f17f6ce9f4188f1916c742f1fd1072ec8d33dbf (diff) |
update connection readiness after SSL handshake,
this fixes mail proxy SSL connection hanging if level-triggered event is used
-rw-r--r-- | src/event/ngx_event_openssl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index af54b5050..40e371280 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -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; } |