<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 2:43 PM, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br>
<div class="im"><br>
On Mon, Mar 01, 2010 at 02:18:58PM -0500, sridhar basam wrote:<br>
<br>
&gt; The documentation for the mail proxy module state the &quot;so_keepalive&quot;<br>
&gt; variable can be used to toggle keepalive functionality to the backend<br>
&gt; server.<br>
<br>
</div>Wow.  Where did you find one?  May be you mean wiki?<br>
<div class="im"><br></div></blockquote><div><br>That is right, it was on the english wiki. I have corrected it on the wiki, if you want to give it a look.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
&gt; The actual code though uses this configuration variable to drive keepalive<br>
&gt; functionality on the client side connection though. Below is a short patch<br>
&gt; which changes the keepalive functionality to the backend server.<br>
<br>
</div>It is believed that it works as expected - sets SO_KEEPALIVE on<br>
client socket once we are about to open backend connection (which<br>
is usually resource consuming, as backends are used to follow<br>
process per connection model).  This allows to free backend<br>
connections early as long as clients silently disappear.<br>
<br>
You may want to fix wiki instead (it seems to be down right now<br>
though).<br>
<font color="#888888"><br></font></blockquote><div><br>Yeah, guess doing it on either end is fine, since the backend is going to get torn down if the client is detected as down.<br><br> sridhar<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888">
Maxim Dounin<br>
</font><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://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sridhar<br>