W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 2001

Setting timeout in HttpURLConnection

From: Ronen Lazar <RonenL@gilian.com>
Date: Wed, 7 Mar 2001 05:23:42 -0500 (EST)
Message-ID: <1797E7C8F378D411A1CE00D0B77E59CE2A7C8A@gilian-mail>
To: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
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.

Any idea?

TIA,
Ronen.
Received on Wednesday, 7 March 2001 09:12:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:35 GMT