|
Java™ by example!
|
|
|
How do I set the a connect timeout on an URLConnection?
JDK1.5 allows you to set connect and read timeouts on URLConnection (HttpURLConnection, etc.). Here is an example:
Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|