Socket.connect() & Socket.setSoTimeout() do accept negative values for the
timeout. This is totally undocumented and inconsistent with other APIs.
Negative values should cause an IllegalArgumentException.
timeout. This is totally undocumented and inconsistent with other APIs.
Negative values should cause an IllegalArgumentException.
- duplicates
-
JDK-4467717 Javadoc does not specify timeout parameter for Socket.connect()
-
- Closed
-