Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 169 by michal.linhard: probably incorrect treatment of negative expiration time
http://code.google.com/p/memcached/issues/detail?id=169

What steps will reproduce the problem?
1. echo -e "set d 2147483647 -2147483648 1\r\na\r" | nc localhost 11211
2. echo -e "get d\r" | nc localhost 11211

What is the expected output? What do you see instead?
expected:
1. STORED
2. END
instead:
1.
STORED
2.
VALUE d 2147483647 1
a
END

What version of the product are you using? On what operating system?
memcached 1.4.5
Linux 2.6.32.23-170.fc12.i686.PAE

from the protocol it is not that clear how negative expiration times should be treated. but whether they are treated as seconds or unix time the stored item should expire immediately.




Reply via email to