TelnetInputStream available() method bloocks
Brought to you by:
kristjansson
InputStream method available() should be non-blocking
(according to java specification).
In the TelnetInputStream class the available()
implementation calls read() which is a blocking call,
thus using available() to check if indeed there are
chars to read block and returns only if there are chars
to read.