tarantool / memcached

Memcached protocol 'wrapper' for tarantool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SET command family gives an error on empty body ('') in binary protocol

bigbes opened this issue · comments

SET command family gives an error on empty body ('') in binary protocol

Reproduced on Tarantool 2.8.3-0-g01023dbc2 with patch:

--- a/test/binary/binary.test.py
+++ b/test/binary/binary.test.py
@@ -162,6 +162,11 @@ iequal(res[0]['val'], 9223372036854775809)
 res = mc.decr("bug21")
 iequal(res[0]['val'], 9223372036854775808)
 
+print("""#----------------------------------# bug 48 #---------------------------------#""")
+set("", 5, 19, "value")
+set("key", 5, 19, "")
+set("", 5, 19, "")
+
 print("""#-----------------------------------------------------------------------------#
 ################################ Diagnostics CAS ##############################
 #-----------------------------------------------------------------------------#""")