Welcome! Log In Create A New Profile

Advanced

Re: upstream keepalive - call for testing

All files from this thread

File NameFile Size Posted byDate 
upstream.patch2.3 KBopen | downloadMatthieu Tourne08/12/2011Read message
ngx_http_upstream_keepalive.patch542 bytesopen | downloadMatthieu Tourne08/12/2011Read message
upstream.patch2.6 KBopen | downloadMatthieu Tourne08/12/2011Read message
August 31, 2011 04:04PM
OK, It works for 3 days with 40 million request haven't coredump.
Thanks.

Maxim Dounin Wrote:
-------------------------------------------------------
> Hello!
>
> On Sun, Aug 28, 2011 at 01:07:25PM -0400,
> magicbear wrote:
>
> > Hello, tested for 2 days, the segmentation
> failure frequence is
> > decreased, but sometime still will dead.
> >
> > Here is the coredump information. It seems
> appear too at official
> > without patch version.
>
> [...]
>
> > (gdb) bt
> > #0 0x000000000045bd99 in
> ngx_http_upstream_handler (ev=0x7f99438901e8)
> > at src/http/ngx_http_upstream.c:921
> > #1 0x0000000000427839 in
> ngx_event_expire_timers () at
> > src/event/ngx_event_timer.c:149
>
> Could you please test if the attached patch fixes
> things for you?
>
> You may also grab it from here:
> http://mdounin.ru/files/patch-nginx-ssl-shutdown.t
> xt
>
> Maxim Dounin
> # HG changeset patch
> # User Maxim Dounin <mdounin@mdounin.ru>
> # Date 1314581235 -14400
> # Node ID 804454a04e22d32c064a3af8e7b24326c7fc2d63
> # Parent 4b58ea791d9f09b0e2d019fcdea340c0a390af6c
> Handle quiet ssl shutdown.
>
> OpenSSL's SSL_shutdown() may still try to talk to
> network even if
> SSL_set_shutdown(SSL_RECEIVED_SHUTDOWN|SSL_SENT_SH
> UTDOWN) was used.
> This happens if there are some unsent alerts.
>
> Use SSL_set_quiet_shutdown() to actually shutdown
> quitely if we were asked
> to. Note that SSL_set_shutdown() is still
> required as not setting it will
> invalidate session.
>
> diff --git a/src/event/ngx_event_openssl.c
> b/src/event/ngx_event_openssl.c
> --- a/src/event/ngx_event_openssl.c
> +++ b/src/event/ngx_event_openssl.c
> @@ -1205,6 +1205,7 @@
> ngx_ssl_shutdown(ngx_connection_t *c)
>
> if (c->timedout) {
> mode =
> SSL_RECEIVED_SHUTDOWN|SSL_SENT_SHUTDOWN;
> +
> SSL_set_quiet_shutdown(c->ssl->connection, 1);
>
> } else {
> mode =
> SSL_get_shutdown(c->ssl->connection);
> @@ -1216,6 +1217,10 @@
> ngx_ssl_shutdown(ngx_connection_t *c)
> if (c->ssl->no_send_shutdown) {
> mode |= SSL_SENT_SHUTDOWN;
> }
> +
> + if (c->ssl->no_wait_shutdown &&
> c->ssl->no_send_shutdown) {
> +
> SSL_set_quiet_shutdown(c->ssl->connection, 1);
> + }
> }
>
> SSL_set_shutdown(c->ssl->connection, mode);
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

upstream keepalive - call for testing

Maxim DouninAugust 01, 2011 12:10PM

Re: upstream keepalive - call for testing

liseenAugust 02, 2011 09:38AM

Re: upstream keepalive - call for testing

Maxim DouninAugust 02, 2011 01:34PM

Re: upstream keepalive - call for testing

António P. P. AlmeidaAugust 02, 2011 11:28AM

Re: upstream keepalive - call for testing

Maxim DouninAugust 02, 2011 01:38PM

Re: upstream keepalive - call for testing

David YuAugust 02, 2011 01:44PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 02, 2011 01:52PM

Re: upstream keepalive - call for testing

David YuAugust 02, 2011 01:54PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 02, 2011 02:48PM

Re: upstream keepalive - call for testing

David YuAugust 02, 2011 03:10PM

Re: upstream keepalive - call for testing

liseenAugust 02, 2011 11:58PM

Re: upstream keepalive - call for testing

spliticeAugust 03, 2011 01:22AM

Re: upstream keepalive - call for testing

Matthieu TourneAugust 03, 2011 08:08PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 04, 2011 02:54AM

Re: upstream keepalive - call for testing

spliticeAugust 08, 2011 12:46AM

Re: upstream keepalive - call for testing

Maxim DouninAugust 08, 2011 05:24AM

Re: upstream keepalive - call for testing

spliticeAugust 08, 2011 05:36AM

Re: upstream keepalive - call for testing

spliticeAugust 08, 2011 05:38AM

Re: upstream keepalive - call for testing Attachments

Matthieu TourneAugust 12, 2011 03:34PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 12, 2011 04:00PM

Re: upstream keepalive - call for testing

Matthieu TourneAugust 12, 2011 05:14PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 12, 2011 06:28PM

Re: upstream keepalive - call for testing Attachments

Matthieu TourneAugust 12, 2011 06:44PM

Re: upstream keepalive - call for testing

Matthieu TourneAugust 16, 2011 07:32PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 16, 2011 08:24PM

Re: upstream keepalive - call for testing

magicbearAugust 24, 2011 01:11PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 24, 2011 08:06PM

Re: upstream keepalive - call for testing

svAugust 24, 2011 09:18PM

Re: upstream keepalive - call for testing

magicbearAugust 25, 2011 01:30AM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 03:08AM

Re: upstream keepalive - call for testing

Maxim DouninAugust 26, 2011 05:40AM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 07:01AM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 07:04AM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 07:28AM

Re: upstream keepalive - call for testing

Maxim DouninAugust 26, 2011 07:38AM

upstream keepalive close connections actively

cfsegoAugust 02, 2011 10:50PM

Re: upstream keepalive close connections actively

Maxim DouninAugust 03, 2011 03:40AM

RE: upstream keepalive close connections actively

Charles ChenAugust 03, 2011 05:54AM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 07:54AM

Re: upstream keepalive - call for testing

Maxim DouninAugust 26, 2011 11:56AM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 12:17PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 26, 2011 02:08PM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 03:00PM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 12:28PM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 01:00PM

Re: upstream keepalive - call for testing

magicbearAugust 26, 2011 01:51PM

Re: upstream keepalive - call for testing

magicbearAugust 28, 2011 01:07PM

Re: upstream keepalive - call for testing

magicbearAugust 28, 2011 01:10PM

Re: upstream keepalive - call for testing

Maxim DouninAugust 28, 2011 09:48PM

Re: upstream keepalive - call for testing

magicbearAugust 31, 2011 04:04PM

Re: upstream keepalive - call for testing

spliticeAugust 31, 2011 09:58PM

Re: upstream keepalive - call for testing

magicbearSeptember 01, 2011 09:38AM

Re: upstream keepalive - call for testing

magicbearSeptember 04, 2011 01:33PM

Re: upstream keepalive - call for testing

Maxim DouninSeptember 04, 2011 02:22PM

Re: upstream keepalive - call for testing

magicbearSeptember 04, 2011 02:34PM

Re: upstream keepalive - call for testing

Maxim DouninSeptember 05, 2011 03:10AM

Re: upstream keepalive - call for testing

ビリビリⅤSeptember 05, 2011 11:44AM

Re: upstream keepalive - call for testing

Maxim DouninSeptember 05, 2011 02:04PM

Re: upstream keepalive - call for testing

magicbearSeptember 06, 2011 02:39AM

Re: upstream keepalive - call for testing

Matthieu TourneSeptember 07, 2011 07:36PM

Re: upstream keepalive - call for testing

Maxim DouninSeptember 08, 2011 05:28AM

Re: upstream keepalive - call for testing

Maxim DouninSeptember 08, 2011 11:44AM

Re: upstream keepalive - call for testing

Matthieu TourneSeptember 08, 2011 06:06PM

Re: upstream keepalive - call for testing

magicbearSeptember 14, 2011 06:54PM

Re: upstream keepalive - call for testing

magicbearSeptember 15, 2011 01:52PM

Re: upstream keepalive - call for testing

spliticeSeptember 15, 2011 09:44PM

Re: upstream keepalive - call for testing

philippDecember 29, 2011 07:47AM

Re: upstream keepalive - call for testing

Maxim DouninDecember 29, 2011 10:06AM

Re: upstream keepalive - call for testing

alexscottMarch 08, 2012 09:30AM

Re: upstream keepalive - call for testing

Andrew AlexeevMarch 09, 2012 01:20AM

Re: upstream keepalive - call for testing

alexscottMarch 12, 2012 10:35AM

Re: upstream keepalive - call for testing

Maxim DouninMarch 12, 2012 10:56AM

Re: upstream keepalive - call for testing

alexscottMarch 12, 2012 01:40PM

Re: upstream keepalive - call for testing

alexscottMarch 12, 2012 03:55PM

Re: upstream keepalive - call for testing

Maxim DouninMarch 12, 2012 02:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
Record Number of Users: 5 on May 22, 2013
Record Number of Guests: 125 on May 22, 2013
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready