2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-24 02:05:12 +01:00

reuse existing ports in Netcache.java

This commit is contained in:
Thomas Nagy 2012-08-28 00:01:17 +02:00
parent 0f6ee2a0cf
commit d31f2ae845

View File

@ -252,6 +252,7 @@ public class Netcache implements Runnable, Comparator<Object[]> {
init_flist();
System.out.println("ready (" + flist.keySet().size() + " dirs)");
ServerSocket sock = new ServerSocket(PORT);
sock.setReuseAddress(true);
while (true)
{
Netcache tmp = new Netcache(sock.accept());