Welcome! Log In Create A New Profile

Advanced

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin
October 23, 2013 05:48PM
Hello!

On Wed, Oct 23, 2013 at 02:26:41PM -0700, Piotr Sikora wrote:

> Hey Maxim,
>
> > While I tend to think that the problem is indeed related to
> > SSL_MODE_RELEASE_BUFFERS I don't see any reasons why the server
> > side shouldn't be affected. Could you please point out why you
> > think so?
>
> Well, I don't see this from the code, so it's just a hunch, but:
> - I wasn't able to reproduce it on the server side with big uploads,
> - I wasn't able to reproduce it on the client side with buffering on,
> - I was able to consistently reproduce it on the client side with buffering off,
> - I did a fast scan on some of our production logs and I see those
> errors only for content that would be transferred with proxy buffering
> off,
> - I think that we would see much more complains if this was happening
> on the server side or on the client side with default settings
> (buffering on).
>
> I know this isn't very scientific, but those are the facts.
>
> Note: I didn't play around with WebSockets... They are effectively
> unbuffered, so they might be triggering this issue on the server side.

As far as I understand, the problem happens if for some reason
nginx isn't able to read all the data OpenSSL read from a socket,
i.e. if some data are left in the OpenSSL read buffers. (And of
course it only happens if OpenSSL uses the same buffers for
multiple connections.)

This is not something impossible on the server side - but likely
much less common than with proxy_buffering set to off. It can
happen e.g. with pipelined requests, or if a request with a body
is delayed with limit_req.

--
Maxim Dounin
http://nginx.org/en/donation.html

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

SSL_read error on multiple simultaneous upstream SSL downloads

Agent Coulson 2086 October 18, 2013 02:02PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 839 October 18, 2013 03:08PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Agent Coulson 1367 October 18, 2013 04:08PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 621 October 19, 2013 09:00AM

Re: SSL_read error on multiple simultaneous upstream SSL downloads Attachments

Agent Coulson 554 October 21, 2013 01:52PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 626 October 21, 2013 03:50PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Agent Coulson 641 October 21, 2013 05:56PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Piotr Sikora 886 October 21, 2013 02:58PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 547 October 21, 2013 04:02PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Piotr Sikora 632 October 23, 2013 05:28PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 953 October 23, 2013 05:48PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready