roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r219069 - /incubator/roller/branches/roller_1.2/src/org/roller/presentation/ResourceServlet.java
Date Thu, 14 Jul 2005 18:40:35 GMT
Author: agilliland
Date: Thu Jul 14 11:40:34 2005
New Revision: 219069

URL: http://svn.apache.org/viewcvs?rev=219069&view=rev
Log:
bug fix.  we now explicitly close opened IO resources at the end of the request.  this was
causing some problems for nfs users.


Modified:
    incubator/roller/branches/roller_1.2/src/org/roller/presentation/ResourceServlet.java

Modified: incubator/roller/branches/roller_1.2/src/org/roller/presentation/ResourceServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/branches/roller_1.2/src/org/roller/presentation/ResourceServlet.java?rev=219069&r1=219068&r2=219069&view=diff
==============================================================================
--- incubator/roller/branches/roller_1.2/src/org/roller/presentation/ResourceServlet.java
(original)
+++ incubator/roller/branches/roller_1.2/src/org/roller/presentation/ResourceServlet.java
Thu Jul 14 11:40:34 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