dcsimg
What is the HttpUrlConnection timeout value?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Steven_Martin
Posted On:   Thursday, May 30, 2002 02:32 PM

Everyone seems to have a way to timeout. Do we know what the default timeout is or does that depend on your internet connection? I'm guessing the internet connection.

Re: What is the HttpUrlConnection timeout value?

Posted By:   Neil_Wightman  
Posted On:   Friday, May 31, 2002 04:26 AM


Hi.

Have a look at the
sun.net.client.defaultConnectTimeout (default: -1)
sun.net.client.defaultReadTimeout (default: -1)
properties near the bottom of this URL.

These properties specify the default connect and read timeout (resp.) for the protocol handler used by java.net.URLConnection.

http://java.sun.com/j2se/1.4/docs/guide/net/properties.html

Hope this helps.
Neil
About | Sitemap | Contact