mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-27 02:40:51 +01:00
higher sockettimeout for SOCKS
This commit is contained in:
parent
8eb3bbda95
commit
7ea507da98
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user