Skip to content

Commit

Permalink
THRIFT-1523: clientTimeout not worked as expected in TServerSocket cr…
Browse files Browse the repository at this point in the history
…eated by TSSLTransportFactory

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
  • Loading branch information
jfarrell committed Mar 2, 2012
1 parent 363f6d4 commit 4ca8c3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private static TServerSocket createServer(SSLServerSocketFactory factory, int po
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);
}
Expand Down

0 comments on commit 4ca8c3b

Please sign in to comment.