TCP连接池功能

This commit is contained in:
Administrator
2022-12-11 17:27:03 +08:00
parent 35cccfde4b
commit 5d7324db0e
15 changed files with 948 additions and 619 deletions
+1 -2
View File
@@ -76,7 +76,7 @@ public class Tunnel {
}
public Socket connectClientSocket() throws UnknownHostException, IOException {
Socket socket=new Socket();
socket.connect(ipport.getSocketAddress(), 5000);
socket.connect(ipport.getSocketAddress(), 10000);
return socket;
}
@@ -109,5 +109,4 @@ public class Tunnel {
}
}