SSL downloads broken in 0.5.35

Igor Sysoev is at rambler-co.ru
Fri Jan 11 10:07:33 MSK 2008


On Fri, Jan 11, 2008 at 02:07:38PM +1100, Dave Cheney wrote:

> 	We had been using 0.5.34 + the SSL patch placed on this list a month 
> ago which has solved our SSL download issues.
> 
> 	After upgrading to 0.5.35 the error has again returned.
> 
> 	2008/01/11 14:03:51 [crit] 10251#0: *1 SSL_write() failed (SSL: 
> 	error: 1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry) while  
> sending to client, client: 150.101.157.6, server:  
> staging.redbbuble.com, request: "GET /admin/purchase_orders/ 
> download_file/121447 HTTP/1.1", upstream: 
> "http://127.0.0.1:8013/admin/purchase_orders/download_file/121447 ", host: 
> "staging.redbubble.com"
> 
> 	No SSL download will transfer more that 40-60kb before closing the  
> connection abruptly.
> 
> 	Please let me know if I can be of any assistance to debug this issue 
> further.

Strange. Could you test the attached patch against 0.5.35 ?


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/event/ngx_event_openssl.c
===================================================================
--- src/event/ngx_event_openssl.c	(revision 1181)
+++ src/event/ngx_event_openssl.c	(working copy)
@@ -1153,6 +1153,8 @@
     if (ERR_peek_error()) {
         ngx_ssl_error(NGX_LOG_ALERT, log, 0, "ignoring stale global SSL error");
     }
+
+    ERR_clear_error();
 }
 
 


More information about the nginx mailing list