Welcome! Log In Create A New Profile

Advanced

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin
October 21, 2013 03:50PM
Hello!

On Mon, Oct 21, 2013 at 05:50:31PM +0000, Agent Coulson wrote:

> Hi!
>
> thanks for that input, I have done some debugging and examined the SSL
> context when this state arrises. Two SSL* structs (from different
> connections) point to the same packet data. Disabling the read_ahead flag
> mitigates this.
>
> I've attached a patch, after applying I was unable to repro using
> openssl-1.0.1e.
>
> I'll submit a report to the upstream openssl project.

Disabling the read_ahead as a workaround looks wrong for me.
While it probably reduces a chance for a problem to appear, it's
likely still there.

Have you tried looking into the OpenSSL code to find out what
causes the actual problem?

I think it's likely SSL_MODE_RELEASE_BUFFERS related (and I indeed
can't reproduce the error without SSL_MODE_RELEASE_BUFFERS set),
but I don't see any obvious problems in the code.

--
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 2095 October 18, 2013 02:02PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 842 October 18, 2013 03:08PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Agent Coulson 1373 October 18, 2013 04:08PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 624 October 19, 2013 09:00AM

Re: SSL_read error on multiple simultaneous upstream SSL downloads Attachments

Agent Coulson 558 October 21, 2013 01:52PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 630 October 21, 2013 03:50PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Agent Coulson 645 October 21, 2013 05:56PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Piotr Sikora 890 October 21, 2013 02:58PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 550 October 21, 2013 04:02PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Piotr Sikora 635 October 23, 2013 05:28PM

Re: SSL_read error on multiple simultaneous upstream SSL downloads

Maxim Dounin 958 October 23, 2013 05:48PM



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

Online Users

Guests: 212
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