ziutek / telnet

Package to handle a telnet connection
Other
141 stars 60 forks source link

Return ErrNoData when tryReadByte reads a cmd, but buffer already is empty #16

Closed markx closed 6 years ago

markx commented 6 years ago

When the data stream ends with a cmd, trying to read another byte will result in a blocking read call. Now instead of another read call, it returns error ErrNoData.