ganado / redtamarin

Automatically exported from code.google.com/p/redtamarin
Other
2 stars 0 forks source link

add support for timeout on Socket #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
because we use blocking calls we can find ourselves victim of DoS attacks with
- recv/send started but receiving/sending nothing
- recv/send started and receiving/sending too big data

the timeout will apply to all the following blocking methods:

send(), sendBinary(), sendTo(), sendBinaryTo()
and
receive(), receiveAll(), receiveBinary(), receiveBinaryAll(), receiveFrom(), 
receiveBinaryFrom()

Original issue reported on code.google.com by zwetan on 7 Aug 2011 at 12:42

GoogleCodeExporter commented 9 years ago

Original comment by zwetan on 7 Aug 2011 at 12:43