TCP连接池功能
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user