Hello!

While building a little network daemon I stumbled upon the following issue:

I have no idea how much data I can read without blocking. So an attacker
could simply ignore the protocol and stop the transfer so that my daemon
blocks forever..
How do you avoid this simple issue? The only method I found is setting a
Timeout::timeout 10 do end  around the code, but this requires the
timeout module and I don't know if this works reliable..

Could anybody please give me a hint? Thank you!

bye!
Dominik