Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
3.0.1
-
None
-
None
Description
I am using TelnetClient with threading disabled. When setting the socket timeout via TelnetClient.setSoTimeout I would expect any reads that timeout to throw a SocketTimeoutException. However, instead the read returns a -1.
I can see in TelnetInputStream line 404 that the exception thrown by the underlying stream will be caught and an EOF returned.
This seems to break the API contract. Is there any reason for this behavior or is it an oversight?