commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (NET-506) TelnetInputStream blocks ReaderThread while trying to notify TelnetInputListner
Date Thu, 09 Feb 2017 23:39:41 GMT

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

Sebb resolved NET-506.
----------------------
    Resolution: Cannot Reproduce

> TelnetInputStream blocks ReaderThread while trying to notify TelnetInputListner
> -------------------------------------------------------------------------------
>
>                 Key: NET-506
>                 URL: https://issues.apache.org/jira/browse/NET-506
>             Project: Commons Net
>          Issue Type: Bug
>          Components: Telnet
>    Affects Versions: 3.2
>            Reporter: Stanislav K.
>            Priority: Minor
>
> As it's said in javadoc for the method registerInputListener of the class TelnetClient,
"incoming bytes are being added to the internal buffer asynchronously". But it seems to be
not so. In reality, the call of the method telnetInputAvailable of TelnetInputListner in ReaderThread
blocks it and we are always able to read just 1 byte of data from stream.
> I'm not pretty sure, whether it's a bug or I have to do something by my self in my implementation
of TelnetInputLister in case I want to get more then 1 byte at one read from stream?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message