]> git.kaiwu.me - nginx.git/commitdiff
fix "proxy_pass https://..." broken in r1427
authorIgor Sysoev <igor@sysoev.ru>
Fri, 20 Jun 2008 14:42:54 +0000 (14:42 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 20 Jun 2008 14:42:54 +0000 (14:42 +0000)
src/event/ngx_event_openssl.c

index c7a2e94072fa00c8f5e42cff1464daf63a44e0d5..029d7dbfb68bb508908262fc6105d9929ccf642c 100644 (file)
@@ -674,6 +674,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;
         }