hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan B" <pub...@bojerco.com>
Subject RE: Timeout Configuration
Date Wed, 17 Aug 2005 04:53:27 GMT
How about just:

connectionManager.getParams().setConnectionTimeout(TIMEOUT)

>-----Original Message-----
>From: Peter Luttrell [mailto:Peter_Luttrell@mgic.com] 
>Sent: Tuesday, August 16, 2005 3:20 PM
>To: httpclient-user@jakarta.apache.org
>Subject: Timeout Configuration
>
>How do i configure the "http.connection.timeout" under the 
>"HTTP connection parameters"?
>
>Will this work:
>
>      HttpClient client = new HttpClient( new
>MultiThreadedHttpConnectionManager() );
>      client.getHttpConnectionManager().getParams().setParameter(
>"http.connection.timeout", new Integer( 30 * 1000));
>
>I don't think it will because the docs indicate this setting 
>at the connection level....so would this work?
>
>      HttpClient client = new HttpClient( new
>MultiThreadedHttpConnectionManager() );
>      client.getHttpConnectionManager().getConnection(
>client.getHostConfiguration() ).getParams().setParameter( 
>"http.connection.timeout", new Integer( 30 * 1000));
>
>This seams a bit weird that I'd need to pass in the 
>HostConfiguratation...and also is the Connection instance here 
>discarded because it's not actually, making the change meaningless?
>
>-peter
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: 
>httpclient-user-help@jakarta.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message