Thanks for the heads up.  Unfortunately, after I set that option, I found
that it this is not the problem.  Still, now I have one item eliminated.

I don't think there is anything I am doing incorrectly because my client
side app never reports a problem when not going through the proxy.  However,
I can't prove it.  And it could be that maybe I am not doing something
incorrectly that my client java app is more tolerant of than the proxy.

Does anyone have anymore ideas on why this is happening?  I am just writing
to the OutputStream I get from the response and then I close the stream.  Is
there more I need to do when I am done sending a response?

Mark 
 
-----Original Message-----
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 19, 2006 1:39 PM
To: Tomcat Users List
Subject: Re: Random HTTP 502 errors

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" <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED] 
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to