Some problem with SSL on 0.6.31, same config works on 0.5.35

Igor Sysoev is at rambler-co.ru
Wed Jun 18 23:23:46 MSD 2008


On Wed, Jun 18, 2008 at 11:13:39AM -0400, Paul wrote:

> SSL times out or gives blank page..
> What has changed from 0.5.35 to 0.6.31 for ssl support?
> 
> Log file shows:
> 2008/06/18 09:24:04 [error] 21382#0: *33 upstream timed out (110: 
> Connection timed out) while reading upstream, client: x.x.x.x, server: 
> blah.com, request: "GET /favicon.ico HTTP/1.1", upstream: 
> "https://2.2.2.2:443/favicon.ico", host: "1.1.1.1"
> 
> It shows this on every SSL request to the backend.  

This bug had appeared in 0.6.9.
It seems no one uses proxy_pass https:// in 0.6.x.
The attached patch should fix the bug.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/event/ngx_event_openssl.c
===================================================================
--- src/event/ngx_event_openssl.c	(revision 1369)
+++ src/event/ngx_event_openssl.c	(working copy)
@@ -674,6 +674,7 @@
         }
 
         if (bytes) {
+            c->read->ready = 1;
             return bytes;
         }
 


More information about the nginx mailing list