Author: nextgens
Date: 2007-04-12 10:15:53 +0000 (Thu, 12 Apr 2007)
New Revision: 12595

Modified:
   trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
Add a few comments

Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java        
2007-04-12 10:07:59 UTC (rev 12594)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java        
2007-04-12 10:15:53 UTC (rev 12595)
@@ -360,7 +360,10 @@
                        inTestDirectories.put(directory, result);
                }

-               if(read){
+               if(read){ 
+                       // We don't want to attempt to write before: in case an 
IOException is raised, we want to inform the
+                       // client somehow that the node can't write there... 
And setting readFile to null means we won't inform
+                       // it on the status (as if it hasn't requested us to do 
the test).
                        try {
                                FileWriter fw = new 
FileWriter(result.readFilename);
                                fw.write(result.readContent);


Reply via email to