Kumo-gateway and dalli (ruby memcache client talking the binary protocol)

32 views
Skip to first unread message

Christian van der Leeden

unread,
Dec 9, 2010, 2:43:29 PM12/9/10
to kumofs
Hi,

I'm trying to talk to the kumo-gateway with the binary protocol via
the new ruby memcache gem (dalli, https://github.com/mperham/dalli)
Some things I've noticed (and some are blocking me :)

Somehow I get an EOF error for version request and for set request.
get works fine. I've looked at the package request on the client side
and compared it with the specs and it looks fine. Is there a way to
get more information on kumo-gateway side to see what is going wrong
there? E.g. more detailed logging? From looking at the sources version
command seems to be implemented.

Christian
(Dalli works fine with memcached or membase)

Christian van der Leeden

unread,
Dec 9, 2010, 4:09:32 PM12/9/10
to kumofs
Ok, further insight here:

* the version command is a problem the packet in hex looks like:
VERSION: 800b00000000000000000000000000000000000000000000

* set command with flags set to anything than "0"
e.g set command with flags set to "1" , key ==hello, value == world:

SET:
800100050800000000000016000000000000000000000000000000010000000068656c6c6f0408220a776f726c64

The commands are valid according to
https://github.com/trondn/memcached/blob/master/doc/protocol-binary.xml
(or whoever defines what "memcache" means :-)

This is just FYI, a good thing would be if kumo-gateway could complain
about wrong packets, e.g. send an error packet back.
(or maybe it does and I couldn't debug it in the dalli client)

Christian

Reply all
Reply to author
Forward
0 new messages