Welcome! Log In Create A New Profile

Advanced

Re: Crash in mail module during SMTP setup

Maxim Dounin
August 01, 2019 07:08AM
Hello!

On Thu, Aug 01, 2019 at 09:32:20AM +1000, Rob N ★ wrote:

> On Wed, 31 Jul 2019, at 2:11 AM, Maxim Dounin wrote:
> > > I think I see the problem - when using SMTP with SSL and
> > > resolver, read events might be enabled during address
> > > resolving, leading to duplicate
> > > ngx_mail_ssl_handshake_handler() calls if something arrives
> > > from the client, and duplicate session initialization -
> > > including starting another resolving.
>
> That neatly explains why the problem became more noticeable as
> number of connections went up. With the load a little higher,
> DNS resolution could conceivable take a little longer, making it
> more likely that the bug would be triggered.
>
> > > The following patch should resolve this:
>
> I've been running the second patch you posted for ~22hrs with no
> crashes, compared to one every 10-20mins previously. So I think
> you got it! Thank you so much!

Thanks for testing, committed:

http://hg.nginx.org/nginx/rev/fcd92ad76b7b

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Crash in mail module during SMTP setup

Rob N ★ July 29, 2019 01:04AM

Re: Crash in mail module during SMTP setup

Maxim Dounin July 29, 2019 02:28PM

Re: Crash in mail module during SMTP setup

Rob N ★ July 30, 2019 08:42AM

Re: Crash in mail module during SMTP setup

Maxim Dounin July 30, 2019 11:34AM

Re: Crash in mail module during SMTP setup

Maxim Dounin July 30, 2019 12:12PM

Re: Crash in mail module during SMTP setup

Rob N ★ July 31, 2019 07:34PM

Re: Crash in mail module during SMTP setup

Maxim Dounin August 01, 2019 07:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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