You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2005/07/14 20:40:35 UTC

svn commit: r219069 - /incubator/roller/branches/roller_1.2/src/org/roller/presentation/ResourceServlet.java

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();
     }