Hi,
I guess it depends on how you program flows, but when I have needed to
connect to multiple URL's, I have put each attempt in a separate
thread. That way, you will be able to continue processing whilst
waiting for a url to come in.
If you want to control the connection timeout period for a URL, i.e.
set it, URL has a method setConnectTimeout(int millis). See:
http://java.sun.com/j2se/1.5.0/docs/api/java/net/URLConnection.html#setConnectTi
meout(int)
You have to be careful about firing off too many url requests at once,
as you can really jam up your bandwidth, so the number of concurrent
threads you run will be found through trial and error.
Hope that helps
Nikk