tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven J. Owens" <>
Subject Re: Tomcat crashing
Date Wed, 17 Nov 2004 18:09:21 GMT
> >On Wed, Nov 17, 2004 at 08:30:14AM -0500, Shapira, Yoav wrote:
> >> This exception is first of all not fatal, and secondly usually indicates
> >> a client closed the browser (and therefore the output sink, from
> >> Tomcat's perspective) while Tomcat is still writing output to it.  You
> >> can STFA for more details if you'd like.
>"Steven J. Owens" <> wrote:
> >     On a related note, I've run into some really tricky situations
> >where client was hitting the tomcat server via a proxy server.  The
> >client timeout was set shorter than the proxy server timeout, which
> >resulted in a mysterious situation where both sides had contradictory
> >errors: [...]
> >     The result is a timeout error at the client, and a connection
> >reset exception in the tomcat log.

On Wed, Nov 17, 2004 at 12:36:11PM -0500, Peter O'Reilly wrote:
> Where are my responses going?

     Nowhere, it gets discarded.  

     First, it's not _certain_ that what I described above is
happening to your app.  Just a possibility you should bear in mind
while investigating (it took me several days of frutration to figure
out that was what was going on in my case).

     Second, what's happening in general here is that when the client
closes the connection, there's no way for it to proactively notify the
tomcat server about that fact.  All it does is close *its* side (the
client machine's side) of the connection.  Tomcat won't notice that
the connection closed until it tries to send some packets back on it.
At that point, tomcat will see the connection is closed and throw a
connection-reset-by-peer exception.  This exception interrupts the
servlet or jsp code, and the data that *was* going to be sent back to
the client gets discarded.

Steven J. Owens

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." -

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message