tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: Random HTTP 502 errors
Date Wed, 19 Jul 2006 17:39:05 GMT
Mark-

You're in luck
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
The Tomcat 5.5. spec supports LINGER attribute on the <Connection 
connectionLinger = NumberOfSecs

HTH,
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Mark Claassen" <mclaassen@ocie.net>
To: "'Tomcat Users List'" <users@tomcat.apache.org>
Sent: Wednesday, July 19, 2006 8:54 AM
Subject: RE: Random HTTP 502 errors


> 
> I was wondering if this is just caused by Tomcat closing the socket before
> the proxy finished reading the message.  Is there a way to set the LINGER on
> these sockets?  
> 
> It still seems a big strange to me that the LINGER could be a problem, since
> there are no problems when not using the proxy.  If it was the LINGER I
> would expect that our Java client would have problems too.  Still, it is
> something I can look in to, as I am currently at a loss for any other
> theories.
> 
> Lastly, setting the debug level in a connector does not seem to do anything
> for me.  What is the secret to getting debug output on the connectors?
> 
> Mark
> 
> -----Original Message-----
> From: Mark Claassen [mailto:mclaassen@ocie.net] 
> Sent: Tuesday, July 18, 2006 5:04 PM
> To: 'Tomcat Users List'
> Subject: Random HTTP 502 errors
> 
> I was wondering if anyone could shed some light on some strange 502 errors I
> am having when going through a proxy.  We are using a relatively new proxy
> server Sun-Java-System-Web-Proxy-Server/4.0
> 
> The error seems to be originating between Tomcat and the proxy.  When the
> error occurs, the proxy logs say:
> Error reading response header.  Server closed connection.
> 
> On a thousand rapid requests from a client thread, I will get this only 0 -
> 3 times.
> 
> If I send the response header "Connection: close" on every request from my
> servlet, I do not get the error.  However, I do not want to disable
> persistent connections.
> 
> I did a snoop, and I noticed that the responses I get (on the same socket) a
> bunch of replies with this header:
> 
> HTTP/1.1 200 OK 
> Transfer-Encoding: chunked 
> Date: Tue, 18 Jul 2006 19:35:12 GMT 
> Server: Apache-Coyote/1.1
> 
> On the last one for a given socket,
> HTTP/1.1 200 OK 
> Date: Tue, 18 Jul 2006 19:35:12 GMT 
> Server: Apache-Coyote/1.1 
> Connection: close
> 
> Any guidance or insight would be greatly appreciated.
> Mark
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
> e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>
Mime
View raw message