code: public void setConnectTimeout(int timeout) {
  		Assert.isTrue(timeout >= 0, "Timeout must be a non-negative value");
  		getHttpClient().getParams().setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, timeout);
  	}
docs: Set the connection timeout for the underlying HttpClient. A timeout value of 0 specifies an infinite timeout.
  @param timeout the timeout value in milliseconds