classpath
[Top][All Lists]
Advanced

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

Re: URLConnection and Timeouts


From: Victor Niebla
Subject: Re: URLConnection and Timeouts
Date: Tue, 02 Dec 2003 09:59:43 +0100
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.5) Gecko/20031110 Debian/1.5-3

Here is some information about net properties i am talking about,
http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html

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?

Thx



--
"From green to red our days pass by
Waiting for a sign to tell us why
Are we dancing all alone?"

In Flames -> Trigger






reply via email to

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