[ 
https://issues.apache.org/jira/browse/NET-676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb resolved NET-676.
----------------------
    Resolution: Won't Fix

Version 3.0.1 is very old

> TelnetInputStream returns -1 on socket timeout
> ----------------------------------------------
>
>                 Key: NET-676
>                 URL: https://issues.apache.org/jira/browse/NET-676
>             Project: Commons Net
>          Issue Type: Bug
>          Components: Telnet
>    Affects Versions: 3.0.1
>            Reporter: Ieuan Richards
>            Priority: Major
>
> 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?
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to