Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-506

TelnetInputStream blocks ReaderThread while trying to notify TelnetInputListner

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Component/s: Telnet
    • Labels:
      None

      Description

      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?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              edenevair Stanislav K.
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: