David Daney wrote:
This patch adds the missing [get|set]ReadTimeout methods to
java.net.URLConnection. It is lightly tested, but I will create some
mauve tests for it.
If there are no objections, I will commit it after a couple more of days
of testing.
2006-12-02 David Daney <[EMAIL PROTECTED]>
* gnu/java/net/protocol/http/HTTPConnection.java (imports): Add
SocketException.
(HTTPConnection): Handle NumberFormatException in properties
parsing.
(Pool.get): Set timeout on reused sockets.
* gnu/java/net/protocol/http/HTTPURLConnection.java (proxyPort):
Initialize.
(HTTPURLConnection): Cleanup properties handling.
(getConnection): Use both connection and read timeouts.
(setConnectTimeout): Removed.
(setReadTimeout): New method.
* java/net/URLConnection.java (timeout): Renamed to...
(connectTimeout): ... connectTimeout throughout.
(readTimeout): New field.
(getReadTimeout): New method.
(setReadTimeout): New method.
OK, I just committed this one also.
David Daney