diff --git a/playground/netcache/Netcache.java b/playground/netcache/Netcache.java index 134e154e..ecc0d6be 100644 --- a/playground/netcache/Netcache.java +++ b/playground/netcache/Netcache.java @@ -16,8 +16,8 @@ import java.net.*; import java.security.*; public class Netcache implements Runnable, Comparator { - private static int PORT_UPLOAD = 51200; //11001; - private static int PORT_DOWNLOAD = 51200; //12001; + private static int PORT_UPLOAD = 11001; + private static int PORT_DOWNLOAD = 12001; private static String CACHEDIR = "/tmp/wafcache/"; private static long MAX = 10l * 1024l * 1024l * 1024l; private static double CLEANRATIO = 0.8; @@ -75,7 +75,7 @@ public class Netcache implements Runnable, Comparator { ServerSocket server = new ServerSocket(port); server.setReuseAddress(true); while(true) { - Netcache tmp = new Netcache(server.accept(), PORT_UPLOAD); + Netcache tmp = new Netcache(server.accept(), port); Thread t = new Thread(tmp); t.start(); }