tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <>
Subject Re: Tomcat 5.5.25 freezes
Date Fri, 04 Jul 2008 12:07:01 GMT
Tony... just another thought...
I want to change the philosophy a little....

If YOU open a stream... ie File f = new File.... Buffered streams etc...
Then make absolutey sure you close them...


If you GET a stream from TC...
OutputStream out = response.getOutputStream();


Its an issue we've had, but I didnt see it as a bug, just a feature ;).... 
ie let TC decide when "it" wants to close its own streams.

The theory I have on this is that if you bang the stream shut before all the 
data is sent... you get the browser waiting for TC problem... and it only 
shows itself under load... it seems.

So its a little contradiction... close only YOUR streams... in theory this 
is wrong I think, but TC checks it own buffers and will close them at some 
stage... naturally the stream must not be in a global scope, or TC wont be 
able to release it.... it doesnt feel good, but its worth a try...

Ok... now I'm fresh out of guesses ;)

The most powerful application server on earth.
The only real POJO Application Server.
See it in Action :

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message