This patch makes sure the specified timeout is used when opening connections, too.
Patch: David Helder
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@939380 
13f79535-47bb-0310-9956-
ffa450edef68
     }
 
     try {
-      socket_.connect(new InetSocketAddress(host_, port_));
+      socket_.connect(new InetSocketAddress(host_, port_), timeout_);
       inputStream_ = new BufferedInputStream(socket_.getInputStream(), 1024);
       outputStream_ = new BufferedOutputStream(socket_.getOutputStream(), 1024);
     } catch (IOException iox) {