hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: SoTimeout setting
Date Mon, 27 Oct 2003 13:28:17 GMT
It would look something like the following:

         HttpClient client = new HttpClient();
         client.getHttpConnectionManager().getParams().setSoTimeout(10);

This setting will then effect all connections created using the 
connection manager associated with the instance of HttpClient.

Mike

On Oct 27, 2003, at 9:07 AM, linea@libero.it wrote:

> Hi,
> how am I supposed to set the socket timeout for an HttpClient and for 
> different HttpMethods with the new preferences architecture?
>
> I don't understand the inheritance scheme: how can HttpMethodParams 
> inherit SO_TIMEOUT from HttpConnectionParams?
> What is the default value of SO_TIMEOUT for a client and for a method?
>
> thanks a lot
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
>


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


Mime
View raw message