Please don&#39;t send twice.<br><br><div class="gmail_quote">On Wed, Jun 3, 2009 at 7:23 AM, niedh <span dir="ltr">&lt;<a href="mailto:niedhui@gmail.com">niedhui@gmail.com</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;">
<div><div></div><div class="h5">Hi everybody,<br>
I&#39;m new to nginx. Recently I use comet in my project. I choose tomcat for the java server. and enable the Http11NioProtocol connector.<br>
client send a ajax request,and the server side suspend it, and set a timeout(5 seconds),when timeout reach,the tomcat end the response<br>
in tomat server.xml<br>
  &lt;Connector port=&quot;9090&quot; protocol=&quot;org.apache.coyote.http11.Http11NioProtocol&quot;<br>
             connectionTimeout=&quot;20000&quot;<br>
             redirectPort=&quot;8443&quot; /&gt;<br>
<br>
when I test with tomcat directly,  means <a href="http://localhost:8080/xxxxx" target="_blank">http://localhost:8080/xxxxx</a>, it works as what I expect,<br>
but when I use nginx to proxy, when the timeout reach,the tomcat server end the response,but the request still there,<br>
nginx wait for its own &quot;request timeout&quot;(I don&#39;t what to call it).<br>
in nginx.conf,I set the follow proxy-relative config<br>
      proxy_buffering          off;<br>
      proxy_redirect          off;<br>
      proxy_set_header        Host            $host;<br>
      proxy_set_header        X-Real-IP       $remote_addr;<br>
      proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;<br>
<br>
is there something i missed ? Any suggestion will be    appreciate.. thanks<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br><a href="http://www.brainyquote.com/quotes/authors/g/george_bernard_shaw.html" target="_blank">George Bernard Shaw</a>  - &quot;A government that robs Peter to pay Paul can always depend on the support of Paul.&quot;