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:
parent
0f6ee2a0cf
commit
d31f2ae845
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user