While building a little network daemon I stumbled upon the following
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
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!