higher sockettimeout for SOCKS

This commit is contained in:
sirjonasxx 2020-06-12 00:12:41 +02:00
parent 8eb3bbda95
commit 7ea507da98
3 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@ public class NormalProxyProvider extends ProxyProvider {
return;
}
server = configuration.createSocket();
server.connect(new InetSocketAddress(proxy.getActual_domain(), proxy.getActual_port()), 1200);
server.connect(new InetSocketAddress(proxy.getActual_domain(), proxy.getActual_port()), 5000);
}
startProxyThread(client, server, proxy);

View File

@ -16,7 +16,7 @@ public interface SocksConfiguration {
default Socket createSocket() throws SocketException {
Proxy socks = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress(getSocksHost(), getSocksPort()));
Socket server = new Socket(socks);
server.setSoTimeout(1200);
server.setSoTimeout(5000);
return server;
}

View File

@ -177,7 +177,7 @@ public class LinuxRawIpProxyProvider extends ProxyProvider {
Socket server = configuration.createSocket();
try {
server.connect(new InetSocketAddress(proxy.getActual_domain(), proxy.getActual_port()), 1200);
server.connect(new InetSocketAddress(proxy.getActual_domain(), proxy.getActual_port()), 5000);
startProxyThread(client, server, proxy);
}
catch (Exception e) {