classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URLConnection and Timeouts


From: Michael Koch
Subject: Re: URLConnection and Timeouts
Date: Tue, 2 Dec 2003 11:34:37 +0100
User-agent: Mutt/1.3.28i

On Tue, Dec 02, 2003 at 09:56:36AM +0100, Victor Niebla wrote:
> Hi all, here it goes i hope it doesnt sound stupid.....
> 
> I get some code to make a connection to a URL Timeouts work
> with JDK but not with classpath, the main reason is that
> at the end on a java.net.Socked this method is called:
> 
> public void connect(SocketAddress endpoint) throws IOException {
>    connect(endpoint, 0);
>    }
> 
> Where 0 stands for infitelly wait connection.
> In the JDK if you stablish "sun.net.client.defaultReadTimeout"
> system property to the value of the Timeout in milisecs, after that
> time SocketTimeoutException is thrown if not succeded on connecting or 
> reading.
> 
> am i rigth, Should it be checked somewhere, is it allready?
> and if so... where should it be checked?

I knew there was something missing. The docs say that
sun.net.client.defaultReadTimeout is implementation-specific to SUNs
JDK. SHould we support it for compatibility or should we define our own
(gnu.net.client.defaultReadTimeout) ?.

Michael

Note to myself and any other helper: look through the list of properties
to see what is implemented and what is not.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]