Skip to content

Commit

Permalink
Merge pull request #43 from nextcloud/socket-check
Browse files Browse the repository at this point in the history
Socket check
  • Loading branch information
AndyScherzinger authored Mar 3, 2017
2 parents 9bf41f0 + d118c8a commit 4b01409
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public Socket createSocket(final String host, final int port,
enableSecureProtocols(socket);
SocketAddress localaddr = new InetSocketAddress(localAddress, localPort);
SocketAddress remoteaddr = new InetSocketAddress(host, port);
socket.setSoTimeout(params.getSoTimeout());
socket.setSoTimeout(params.getSoTimeout() * 5);
socket.bind(localaddr);
ServerNameIndicator.setServerNameIndication(host, (SSLSocket)socket);
socket.connect(remoteaddr, timeout);
Expand Down

0 comments on commit 4b01409

Please sign in to comment.