mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-04 13:26:44 +00:00
remove socket read timeout
This commit is contained in:
parent
11a3bfd893
commit
0593c764b6
1 changed files with 0 additions and 2 deletions
|
@ -24,7 +24,6 @@ public class TcpTransport implements Transport, Closeable {
|
|||
|
||||
public static final int DEFAULT_PORT = 50001;
|
||||
private static final int[] READ_TIMEOUT_SECS = {3, 8, 16, 34};
|
||||
public static final int SOCKET_READ_TIMEOUT = 60000;
|
||||
|
||||
protected final HostAndPort server;
|
||||
protected final SocketFactory socketFactory;
|
||||
|
@ -194,7 +193,6 @@ public class TcpTransport implements Transport, Closeable {
|
|||
public void connect() throws ServerException {
|
||||
try {
|
||||
socket = createSocket();
|
||||
socket.setSoTimeout(SOCKET_READ_TIMEOUT);
|
||||
running = true;
|
||||
} catch(SSLHandshakeException e) {
|
||||
throw new TlsServerException(server, e);
|
||||
|
|
Loading…
Reference in a new issue