[freenet-cvs] r12596 - trunk/freenet/src/freenet/node/fcp

nextgens at freenetproject.org nextgens at freenetproject.org
Thu Apr 12 10:24:29 UTC 2007


Author: nextgens
Date: 2007-04-12 10:24:29 +0000 (Thu, 12 Apr 2007)
New Revision: 12596

Modified:
   trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
Log:
more comments and trivial things

Modified: trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java
===================================================================
--- trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java	2007-04-12 10:15:53 UTC (rev 12595)
+++ trunk/freenet/src/freenet/node/fcp/FCPConnectionHandler.java	2007-04-12 10:24:29 UTC (rev 12596)
@@ -13,7 +13,7 @@
 import freenet.support.io.FileUtil;
 
 public class FCPConnectionHandler {
-	static final private class DirectoryAccess {
+	private static final class DirectoryAccess {
 		final boolean canWrite;
 		final boolean canRead;
 		
@@ -57,9 +57,13 @@
 	private FCPClient client;
 	final BucketFactory bf;
 	final HashMap requestsByIdentifier;
+
 	// We are confident that the given client can access those
 	private final HashMap checkedDirectories = new HashMap();
+	// DDACheckJobs in flight
 	private final HashMap inTestDirectories = new HashMap();
+	private static final boolean ASSUME_DOWNLOAD_DDA_IS_ALLOWED = false;
+	private static final boolean ASSUME_UPLOAD_DDA_IS_ALLOWED = false;
 	
 	public FCPConnectionHandler(Socket s, FCPServer server) {
 		this.sock = s;
@@ -294,7 +298,7 @@
 		}
 		
 		if(da == null)
-			return false;
+			return ASSUME_DOWNLOAD_DDA_IS_ALLOWED;
 		else
 			return da.canWrite;
 	}
@@ -308,7 +312,7 @@
 		}
 		
 		if(da == null)
-			return false;
+			return ASSUME_UPLOAD_DDA_IS_ALLOWED;
 		else
 			return da.canRead;
 	}




More information about the cvs mailing list