Increased SSL handshake timeout to 30 seconds

This commit is contained in:
Kishan Kavala 2014-04-16 23:55:26 +05:30 committed by Kishan Kavala
parent 01a325b2bf
commit dc17e4ef39
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ public class Link {
ByteBuffer out_pkgBuf = ByteBuffer.allocate(sslSession.getPacketBufferSize() + 40);
ByteBuffer out_appBuf = ByteBuffer.allocate(sslSession.getApplicationBufferSize() + 40);
int count;
ch.socket().setSoTimeout(10 * 1000);
ch.socket().setSoTimeout(30 * 1000);
InputStream inStream = ch.socket().getInputStream();
// Use readCh to make sure the timeout on reading is working
ReadableByteChannel readCh = Channels.newChannel(inStream);