SSL downloads broken in 0.5.35

Hi Igor,

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.

Attached is the patch we used against 0.5.34 which works for us

Cheers

Dave

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

"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 ?

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

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.

Are in log any alert messages about “ignoring stale global SSL error” ?

No, none were visible in the log, but we were running at INFO level.

Cheers

Dave

On Fri, Jan 11, 2008 at 06:50:00PM +1100, Dave C. wrote:

No, none were visible in the log, but we were running at INFO level.

The alerts are highest level.
Strange.

Hi Igor

Sadly this has not fixed the problem

2008/01/11 19:05:10 [crit] 16702#0: *123 SSL_write() failed (SSL:
error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry) while
sending to client, client: 220.253.63.155, 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

Cheers

Dave

Hi Igor,

Sadly this has not fix the problem, with both patchfiles applied, the
same symptoms occur, the transfer is truncated at around 50 to 60kb.

2008/01/12 06:06:46 [crit] 10331#0: *1 SSL_write() failed (SSL: error:
1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry) while
sending to client, client: 220.253.63.155, 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

Cheers

Dave

Thanks Igor, have a great vacation.

Cheers

Dave

On Fri, Jan 11, 2008 at 07:06:55PM +1100, Dave C. wrote:

Sadly this has not fixed the problem

2008/01/11 19:05:10 [crit] 16702#0: *123 SSL_write() failed (SSL:
error:1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry) while
sending to client, client: 220.253.63.155, 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

The additional patch (should be used with patch-0.5.35.1.txt).

On Sat, Jan 12, 2008 at 06:08:18AM +1100, Dave C. wrote:

Sadly this has not fix the problem, with both patchfiles applied,
the same symptoms occur, the transfer is truncated at around 50 to 60kb.

2008/01/12 06:06:46 [crit] 10331#0: *1 SSL_write() failed (SSL:
error: 1409F07F:SSL routines:SSL3_WRITE_PENDING:bad write retry) while
sending to client, client: 220.253.63.155, 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

Strange. I do not see a difference with 0.5.34+first patch.
Anyway, I will return to this problem after one week.

Hi

Can you still reproduce the error with nginx 0.5.35? Because we had the
same
problem with ssl bad write retry error and the published patch on this
mailing
list + 0.5.34 has solved the problem for us and even the 0.5.35 is
working fine.
So could you please double check if you still get the bad write retry
error and
if it is really with the 0.5.35 nginx version? (check with nginx -v or
-V option)
If yes, could you post the output from nginx -V and additionally the OS
type,
ssl library version, x86 or 64bit and what is your testing procedure
which gives
you this error?

Michal Mach

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs