-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 2/12/2010 10:46 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
>> Subject: Re: What governs a URL connection timeout?
>>
>> It's possible that (the other) Chris is using a library
> 
> The OP already posted the code of interest

Duh. That's what I get for not reading every word of the OP.

> Just replace:
> 
>     InputStream t_inputStream = t_url.openStream();
> 
> with
> 
>     URLConnection t_connection = t_url.openConnection();
>     t_connection.setReadTimeout(desiredValue);
>     InputStream t_inputStrem = t_connection.getInputStream();

+1

Or, setConnectTimeout() which answers the OP's actual question, but
wouldn't end up solving his problem.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkt1el4ACgkQ9CaO5/Lv0PBcZwCgs0DDTQpjlCzo7QJ+kP84Obo0
E9UAoIOk6Bm5CLCNWBb1g/jXy9p8hDZ8
=6wCb
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to