docs: public Socket createSocket(String host, int port, InetAddress localAddress,
              int localPort, HttpConnectionParams params) throws IOException,
              UnknownHostException, ConnectTimeoutException {
          if (params == null) {
              throw new IllegalArgumentException("Parameters may not be null");
          }
          int timeout = params.getConnectionTimeout();
          if (timeout == 0) {
              // ignore the local address/port for binding
              return createSocket(host, port);
          } else {
              Socket s=new Socket();
              s.connect(new InetSocketAddress(host,port),timeout);
              return s;
          }
      }