Problem with netcat and memcached
varteaga at tecnobe.com
Tue Feb 8 12:01:27 PST 2005
I've done the following script to check that memcached has a key in it's
inside, and thus know that it's working correctly:
echo -e "get is_ok\r\nquit\r\n" | netcat $host $ip
and I find that sometimes it returns the VALUE in it's inside, but other
The only way to be able to receive it correctly is to delay a second
between command and command:
echo -e "get is_ok\r\nquit\r\n" | netcat -i1 $host $ip
Maybe there is a race condition inside memcached that if it receives a
quit it closes the connection even when there is data to send?
Tecnobe Tecnología, S.L.
C/ Diagonal, 34A 3o1a
08290 Cerdanyola del Valles
93 580 98 95
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 307 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/memcached/attachments/20050208/e05c5b06/varteaga.vcf
More information about the memcached