mirror of https://github.com/apache/cloudstack.git
utils: improve timeout to 60s, define generics properly
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
(cherry picked from commit d2471df0be)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
74e0a5f9ec
commit
48ef7e5f28
|
|
@ -466,7 +466,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(30 * 1000);
|
||||
ch.socket().setSoTimeout(60 * 1000);
|
||||
InputStream inStream = ch.socket().getInputStream();
|
||||
// Use readCh to make sure the timeout on reading is working
|
||||
ReadableByteChannel readCh = Channels.newChannel(inStream);
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public class SSLUtils {
|
|||
public static final Logger s_logger = Logger.getLogger(SSLUtils.class);
|
||||
|
||||
public static String[] getSupportedProtocols(String[] protocols) {
|
||||
Set set = new HashSet();
|
||||
Set<String> set = new HashSet<String>();
|
||||
for (String s : protocols) {
|
||||
if (s.equals("SSLv3") || s.equals("SSLv2Hello")) {
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in New Issue