Setting timeout in HttpURLConnection

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 UTC