sun.net.www.protocol.http.HttpURLConnection doesn't respond to timeout prop
843790Nov 27 2006 — edited Dec 4 2006Hello,
I've tried to use the network timeout properties sun.net.client.defaultConnectTimeout and sun.net.client.defaultReadTimeout as defined @ http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html, but URLConnections I create to http servers don't seem to capture those properties.
When I do URLConnection.getConnectTimeout() and getReadTimeout(), I get back 0 regardless of the values I set to those properties... : -7
I tried setting them with -D @ CLI and System.setProperty(), but it's always 0 (no timeout) unless I set them dynamically on each URLConnection object.
I think I got this to work on j2se1.4.2 in the past, so I'm confused why I can't get it to work on 1.5.0_09/Linux.
Thoughts?