<font color="#000099">Posting the contents inline. Can someone review this? </font><div><font color="#000099">-----------------------------------------------------------------------------------------------------</font></div>
<div><font color="#000099"><div>I use nginx in this mode for [BOSH][1] and chat clients along with gzip.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>location ~* /http-bind/ { </div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> proxy_buffering off;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> keepalive_timeout 55;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> access_log off;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span> tcp_nodelay on;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span> proxy_pass <a href="http://x.x.x.x:1111">http://x.x.x.x:1111</a>;</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div><br></div><div>Is this the best approach to **managing long polling** in nginx. </div><div><br></div><div>I also use just one worker process for altogether for web & chat (single CPU). Is that fine? </div>
<div><br></div><div><br></div><div> [1]: <a href="http://xmpp.org/extensions/xep-0206.html">http://xmpp.org/extensions/xep-0206.html</a></div><div>-Quintin</div></font><br><div class="gmail_quote">On Thu, Nov 3, 2011 at 2:47 PM, Quintin Par <span dir="ltr"><<a href="mailto:quintinpar@gmail.com">quintinpar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#000099">Can someone please answer this question on <a href="http://serverfault.com" target="_blank">serverfault.com</a>? </font><div>
<font color="#000099"><br></font></div><div><a href="http://serverfault.com/questions/327301/nginx-long-poll-best-practices-to-reduce-memory-and-bandwidth-footprint" target="_blank">http://serverfault.com/questions/327301/nginx-long-poll-best-practices-to-reduce-memory-and-bandwidth-footprint</a> <font color="#000099"><br>
</font><font color="#888888"><div><font color="#000099"><br></font></div><div><p style="margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;border-color:initial;font-size:14px;vertical-align:baseline;background-color:rgb(255, 255, 255);clear:both;word-wrap:break-word;font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;line-height:18px;text-align:left">
<span style="color:rgb(0, 0, 153);font-family:arial;line-height:normal;font-size:small">-Quintin</span></p></div></font></div>
</blockquote></div><br></div>