About verbosity and touch command of the binary protocol

128 views
Skip to first unread message

Bongjae Chang

unread,
Jan 7, 2012, 12:54:19 AM1/7/12
to memcached
Hi,

I am trying to implement a memcached client based on Java for
improving performance.

Most of commands worked fine. But when I tested verbosity, touch and
gat command with binary protocol, it seemed that they didn't work
correctly.

* Memcached v1.4.10
1. verbosity
When I sent the request to the server, the server returned unknown
command error.(Text protocol works fine)
(I made the request based on http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Verbosity
)

Here are headers which the server received and sent to the client.
<22 Read binary protocol data:
<22 0x80 0x1b 0x00 0x00
<22 0x04 0x00 0x00 0x00
<22 0x00 0x00 0x00 0x04
<22 0x00 0x00 0x00 0x00
<22 0x00 0x00 0x00 0x00
<22 0x00 0x00 0x00 0x00
>22 Writing an error: Unknown command
>22 Writing bin response:
>22 0x81 0x1b 0x00 0x00
>22 0x00 0x00 0x00 0x81
>22 0x00 0x00 0x00 0x0f
>22 0x00 0x00 0x00 0x00
>22 0x00 0x00 0x00 0x00
>22 0x00 0x00 0x00 0x00

2. touch and gat
When I sent touch and gat requests with expiration timeout to the
server, the server returned No_Error status.
But it seemed that the new expiration was not applied.(I set new
expiration timeout to be 1 second in touch and gat command as extras
request, and waited for 2 sec, and got the key. The key and value were
still alive though I expected key-not-found error)

I also read http://code.google.com/p/memcached/wiki/BinaryProtocolRevamped#Touch,_GAT_and_GATQ
.

If I am missing any issues or misunderstanding these protocols, please
advice me and let me know.

Thanks!

PS) When I used xmemcached java client, results were also same to my
client.
And I sent this mail to memc...@googlegroups.com first, but it
seemed that this message wasn't registered in this groups. So I tried
to register this again by web site directly.

Regards,
Bongjae Chang

uzzable

unread,
Jul 17, 2012, 10:35:30 AM7/17/12
to memc...@googlegroups.com
Got the same problem with binary touch using memcached 1.4.13.
Reply all
Reply to author
Forward
0 new messages