- From: John Philip Anderson <jpanderson_215@hotmail.com>
- Date: Wed, 07 Mar 2001 18:39:19 -0000
- To: ylafon@w3.org
- Cc: www-jigsaw@w3.org
Dear Gentlemen,
As shown below, the setRequestTimeout() method of HttpManager.java,v 1.66
2000/10/11 and earlier versions has no method body (so it does nothing).
Truly yours,
John Philip Anderson
/**
* Global settings - Set the request timeout.
* Once a request has been emited, the HttpManager will sit for this
* given number of milliseconds before the request is declared to have
* timed-out.
* <p>This timeout value defaults to the value of the
* <code>org.w3c.www.http.requestTimeout</code> property value.
* @param ms The timeout value in milliseconds.
*/
public void setRequestTimeout(int ms) {
}
/**
* Global settings - Define a global request header.
* Set a default value for some request header. Once defined, the
>From: Yves Lafon <ylafon@w3.org>
>To: Ronen Lazar <RonenL@gilian.com>
>CC: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
>Subject: Re: Setting timeout in HttpURLConnection
>Date: Wed, 7 Mar 2001 18:48:26 +0100 (MET)
>
>On Wed, 7 Mar 2001, Ronen Lazar wrote:
>
> > Hi all,
> >
> > How can I control (set) the value of the blocking timeout for a HTTP
>request
> > in HttpURLConnection?
> > I'm looking for the effect similar to Socket.setSoTimeout (...).
> >
> > I tried to derive from the HttpURLConnection object and implement my own
> > method like:
> >
> > public void setTimeout (int ms)
> > {
> > HttpManager.getManager().setTimeout (ms);
> > }
> >
> > but it doesn't seem to do the job.
>
>If you are using HttpManager, you have setTimeout(), which sets the
>timeout on the socket, and setRequestTimeout(), a timeout on the whole
>transaction.
>See
>http://jigsaw.w3.org/Doc/Programmer/api/org/w3c/www/protocol/http/HttpManager.html#setTimeout(int)
>Regards,
>
>--
>Yves Lafon - W3C
>"Baroula que barouleras, au tiéu toujou t'entourneras."
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
Received on Wednesday, 7 March 2001 13:40:05 UTC