I havent had any crashes on 3x10mbit servers (90% utilisation) or 2x100mbit servers (20% utilisation).<br><br>Seems very stable.<br><br><div class="gmail_quote">On Thu, Sep 1, 2011 at 6:04 AM, magicbear <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">OK, It works for 3 days with 40 million request haven't coredump.<br>
Thanks.<br>
<br>
Maxim Dounin Wrote:<br>
-------------------------------------------------------<br>
<div><div></div><div class="h5">> Hello!<br>
><br>
> On Sun, Aug 28, 2011 at 01:07:25PM -0400,<br>
> magicbear wrote:<br>
><br>
> > Hello, tested for 2 days, the segmentation<br>
> failure frequence is<br>
> > decreased, but sometime still will dead.<br>
> ><br>
> > Here is the coredump information. It seems<br>
> appear too at official<br>
> > without patch version.<br>
><br>
> [...]<br>
><br>
> > (gdb) bt<br>
> > #0 0x000000000045bd99 in<br>
> ngx_http_upstream_handler (ev=0x7f99438901e8)<br>
> > at src/http/ngx_http_upstream.c:921<br>
> > #1 0x0000000000427839 in<br>
> ngx_event_expire_timers () at<br>
> > src/event/ngx_event_timer.c:149<br>
><br>
> Could you please test if the attached patch fixes<br>
> things for you?<br>
><br>
> You may also grab it from here:<br>
> <a href="http://mdounin.ru/files/patch-nginx-ssl-shutdown.t" target="_blank">http://mdounin.ru/files/patch-nginx-ssl-shutdown.t</a><br>
> xt<br>
><br>
</div></div><div class="im">> Maxim Dounin<br>
> # HG changeset patch<br>
> # User Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>><br>
</div>> # Date 1314581235 -14400<br>
> # Node ID 804454a04e22d32c064a3af8e7b24326c7fc2d63<br>
> # Parent 4b58ea791d9f09b0e2d019fcdea340c0a390af6c<br>
> Handle quiet ssl shutdown.<br>
><br>
> OpenSSL's SSL_shutdown() may still try to talk to<br>
> network even if<br>
> SSL_set_shutdown(SSL_RECEIVED_SHUTDOWN|SSL_SENT_SH<br>
> UTDOWN) was used.<br>
> This happens if there are some unsent alerts.<br>
><br>
> Use SSL_set_quiet_shutdown() to actually shutdown<br>
> quitely if we were asked<br>
> to. Note that SSL_set_shutdown() is still<br>
> required as not setting it will<br>
> invalidate session.<br>
><br>
> diff --git a/src/event/ngx_event_openssl.c<br>
> b/src/event/ngx_event_openssl.c<br>
> --- a/src/event/ngx_event_openssl.c<br>
> +++ b/src/event/ngx_event_openssl.c<br>
> @@ -1205,6 +1205,7 @@<br>
> ngx_ssl_shutdown(ngx_connection_t *c)<br>
><br>
> if (c->timedout) {<br>
> mode =<br>
> SSL_RECEIVED_SHUTDOWN|SSL_SENT_SHUTDOWN;<br>
> +<br>
> SSL_set_quiet_shutdown(c->ssl->connection, 1);<br>
><br>
> } else {<br>
> mode =<br>
> SSL_get_shutdown(c->ssl->connection);<br>
> @@ -1216,6 +1217,10 @@<br>
> ngx_ssl_shutdown(ngx_connection_t *c)<br>
> if (c->ssl->no_send_shutdown) {<br>
> mode |= SSL_SENT_SHUTDOWN;<br>
> }<br>
> +<br>
> + if (c->ssl->no_wait_shutdown &&<br>
> c->ssl->no_send_shutdown) {<br>
> +<br>
> SSL_set_quiet_shutdown(c->ssl->connection, 1);<br>
> + }<br>
> }<br>
><br>
> SSL_set_shutdown(c->ssl->connection, mode);<br>
<div class="im">> _______________________________________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
<br>
</div>Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,213207,214602#msg-214602" target="_blank">http://forum.nginx.org/read.php?2,213207,214602#msg-214602</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>