tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6301] - Streams returned by getResourceAsStream don't close properly
Date Thu, 07 Feb 2002 16:39:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6301>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6301

Streams returned by getResourceAsStream don't close properly

remm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From remm@apache.org  2002-02-07 16:39 -------
I thought your complaint was about the stream not being automatically closed or 
something like it (which is not the case; if you call close on the IS, it will 
really close it).

Here, you're running into a caching problem, where the cache of the directory 
context doen't always get revalidated.
You can use a Resources element (child of a Context element) in server.xml to 
disable the cache or tweak it, so that it would do revalidation on each request 
(although I didn't document that yet, unfortunately; setting the "cacheTTL" 
property to "-1" should do that; disabling the content caching by 
setting "cacheObjectMaxSize" to "-1" would also do it):
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/resources.html

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message