THRIFT-1523: clientTimeout not worked as expected in TServerSocket created by TSSLTra...
authorJake Farrell <jfarrell@apache.org>
Fri, 2 Mar 2012 05:22:02 +0000 (05:22 +0000)
committerJake Farrell <jfarrell@apache.org>
Fri, 2 Mar 2012 05:22:02 +0000 (05:22 +0000)
Client: java
Patch: Alexey Sviridov

Adds server timeout to SSLTransportFactory

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1296053 13f79535-47bb-0310-9956-ffa450edef68

lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java

index f5611aa..25df97f 100644 (file)
@@ -112,7 +112,7 @@ public class TSSLTransportFactory {
       if (params != null && params.cipherSuites != null) {
         serverSocket.setEnabledCipherSuites(params.cipherSuites);
       }
-      return new TServerSocket(serverSocket);
+      return new TServerSocket(serverSocket, timeout);
     } catch (Exception e) {
       throw new TTransportException("Could not bind to port " + port, e);
     }