blitz-foundation / monkey2

zlib License
3 stars 0 forks source link

SocketStream produces 'No error' error msg at client disconnect #102

Open Pharmhaus-2 opened 5 years ago

Pharmhaus-2 commented 5 years ago

Original Author: Hezkore

Calling the blocking method stream.Read on a Stream created from a SocketStream produces socket_recv error! err=0, msg=No error, socket=3628, data=000001107911EB08, size=1 every time a client disconnects.

There doesn't seem to be any real error here, just that the stream can't read anything once it's closed. And you can't really stop it from reading since Read is blocking. It gets quite spammy with a lot of clients coming and going.