Welcome! Log In Create A New Profile

Advanced

Re: ask help for nginx and tomcat

Claude Bing
June 03, 2009 04:12AM
Please don't send twice.

On Wed, Jun 3, 2009 at 7:23 AM, niedh wrote:

> Hi everybody,
> I'm new to nginx. Recently I use comet in my project. I choose tomcat for
> the java server. and enable the Http11NioProtocol connector.
> 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
> in tomat server.xml
> protocol="org.apache.coyote.http11.Http11NioProtocol"
> connectionTimeout="20000"
> redirectPort="8443" />
>
> when I test with tomcat directly, means http://localhost:8080/xxxxx, it
> works as what I expect,
> but when I use nginx to proxy, when the timeout reach,the tomcat server end
> the response,but the request still there,
> nginx wait for its own "request timeout"(I don't what to call it).
> in nginx.conf,I set the follow proxy-relative config
> proxy_buffering off;
> proxy_redirect off;
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>
> is there something i missed ? Any suggestion will be appreciate.. thanks
>
>


--

George Bernard Shaw
- "A government that robs Peter to pay Paul can always depend on the
support of Paul."
Subject Author Posted

ask help for nginx and tomcat

niedh June 03, 2009 01:23AM

Re: ask help for nginx and tomcat

Claude Bing June 03, 2009 04:12AM

Re: ask help for nginx and tomcat

Claude Bing June 03, 2009 08:00AM

Re: ask help for nginx and tomcat

anomalizer June 20, 2009 12:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready