Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions lib/java/src/org/apache/thrift/transport/TSocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,18 @@ public TSocket(String host, int port) throws TTransportException {
this(new TConfiguration(), host, port, 0);
}

/**
* Creates a new unconnected socket that will connect to the given host
* on the given port.
*
* @param host Remote host
* @param port Remote port
* @param timeout Socket timeout and connection timeout
*/
public TSocket(String host, int port, int timeout) throws TTransportException {
this(new TConfiguration(), host, port, timeout, timeout);
}

/**
* Creates a new unconnected socket that will connect to the given host
* on the given port.
Expand Down