HI  , i want to use 1.1.4 to  instead of stable version online ,because we need the upstream keepalive to do sth, do you recommend it?<br><br><div class="gmail_quote">2011/9/25 Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"># HG changeset patch<br>
# User Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>><br>
# Date 1316882053 -14400<br>
# Node ID f1cbffaa09dcc5e8d9f3fc888abcac8e6e7c38b3<br>
# Parent  6c19b251b92674710573c472e8aba406fa72da50<br>
Upstream: clearing of u->peer.connection on close.<br>
<br>
This fixes crashes observed with some 3rd party balancer modules.  Standard<br>
balancer modules (round-robin and ip hash) explicitly set pc->connection<br>
(aka u->peer.connection) to NULL and aren't affected.<br>
<br>
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c<br>
--- a/src/http/ngx_http_upstream.c<br>
+++ b/src/http/ngx_http_upstream.c<br>
@@ -2927,6 +2927,7 @@ ngx_http_upstream_next(ngx_http_request_<br>
         }<br>
<br>
         ngx_close_connection(u->peer.connection);<br>
+        u->peer.connection = NULL;<br>
     }<br>
<br>
 #if 0<br>
<br>
_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br>
</blockquote></div><br>