roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r216010 - /incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java
Date Tue, 12 Jul 2005 19:42:18 GMT
Author: agilliland
Date: Tue Jul 12 12:42:16 2005
New Revision: 216010

URL: http://svn.apache.org/viewcvs?rev=216010&view=rev
Log:
small bug fix.  we now explicitly close all files ... this was causing a problem for ppl using
nfs.

Modified:
    incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java

Modified: incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java?rev=216010&r1=216009&r2=216010&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java (original)
+++ incubator/roller/trunk/src/org/roller/presentation/ResourceServlet.java Tue Jul 12 12:42:16
2005
@@ -102,6 +102,10 @@
         InputStream resource_file = new FileInputStream(resource);
         while((length = resource_file.read(buf)) > 0)
             out.write(buf, 0, length);
+        
+        // cleanup
+        out.close();
+        resource_file.close();
     }
     
     



Mime
View raw message