Menu

#1 TelnetInputStream available() method bloocks

open
nobody
None
5
2005-09-07
2005-09-07
Anonymous
No

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.

Discussion


Log in to post a comment.

Monday.com Logo