From f4df21217f6bcaf50db01abd66ecbd67cc37957b Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 7 Jul 2008 11:30:24 +0000 Subject: [PATCH] r2053 merge: fix "proxy_pass https://..." broken in r1427 --- src/event/ngx_event_openssl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c index 7b44815d7..98f9a4d95 100644 --- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -590,6 +590,11 @@ ngx_ssl_recv_chain(ngx_connection_t *c, ngx_chain_t *cl) } if (bytes) { + + if (n == 0 || n == NGX_ERROR) { + c->read->ready = 1; + } + return bytes; }