hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesus M. Salvo Jr." <jesus.sa...@migasia.com>
Subject Re: Question on Timeouts
Date Fri, 13 Feb 2004 01:20:42 GMT
MCoffey@cmp.com wrote:

>
>
>Hello,
>
>I'm using your product for an application that we're building (that fetches some
>HTTP content) and I'm running into an issue where it isn't timing out 
>  
>
< ..snip...>

>----------This is how we're connecting -----------------
>
>         HttpClient client = new HttpClient();
>         client.setConnectionTimeout (connectionTimeout * 1000);
>         client.setTimeout (transferTimeout * 1000);
>         HttpMethod method = new GetMethod(url);
>try {
>         statusCode = client.executeMethod(method);
>      }
>
>  
>
Try specifying an SO_TIMEOUT in milliseconds via HttpClient.setTimeOut() 
method.
Otherwise, it will default to whatever is the default SO_TIMEOUT on your 
platform.

BTW, does anyone have a compilation / list of the defautl SO_TIMEOUT 
values for each platform ?





---------------------------------------------------------------------
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