question about conn_read and conn_nread states
Torsten Foertsch
torsten.foertsch at gmx.net
Sat Apr 8 20:15:19 UTC 2006
Hi,
if I understood the source correctly a connection is in conn_read state if a
command is expected and in conn_nread if an item is read. Why does
try_read_network() which is called in conn_read just after try_read_command()
try to read as much data from the network as possible allocating more and
more buffer space. Wouldn't that ask for a DOS attack?
Why not read a limited buffer say 8k? Every command does probably fit into
that space. The rest of the item is then read in conn_nread.
Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20060408/e85374d5/attachment.pgp
More information about the memcached
mailing list