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

New issue 384 by [email protected]: memcached refuse to recv data if the client send too much data without recving
https://code.google.com/p/memcached/issues/detail?id=384

(I’m not sure whether it is a bug or a feature.)


### What steps will reproduce the problem?
1. start a memcached server on port 11211
2. download the snippet: https://gist.github.com/mckelvin/6aaf1d14e7866719a9bc and make sure python(2) is available
3. python memcached_reproduce.py

### What is the expected output? What do you see instead?
The reproduce code is expected to exit 0. If the bug occurs, the python process should be idle and never times out.

### What version of the product are you using? On what operating system?
CANNOT be reproduced on version 1.4.5(Gentoo), 1.4.13(Ubuntu), 1.4.15(OS X),
CAN be reproduced on version 1.4.17(Gentoo), 1.4.20(OS X).
Not all of the versions between V1.4.5 and V1.4.20 have been tested yet but I guess it is introduced in V1.4.16 or V1.4.17 (if it’s a bug).

### Please provide any additional information below.

The issue is in storage commands. The doc says:

The client sends a command line, and then a data block; after that the client expects one line of response, which will indicate success or failure.

What if I send N(N > 1) storage commands at once, and then expects N lines of response? The behaviour is not mentioned in the doc, and I’m not sure if it is acceptable. If not so, you may close the issue directly, otherwise this should be a bug.

code to reproduce: https://gist.github.com/mckelvin/6aaf1d14e7866719a9bc


The issue
CANNOT be reproduced on version 1.4.5(Gentoo), 1.4.13(Ubuntu), 1.4.15(OS X),
and CAN be reproduced on version 1.4.17(Gentoo), 1.4.20(OS X). Not all of the versions between V1.4.5 and V1.4.20 have been tested yet but I guess it is introduced in V1.4.16 or V1.4.17 (if it’s a bug).

I know anyway the client should be blamed for sending so much data but refuse to receive any thing, but the server doesn't keep this behaviour between these versions, that sounds buggy.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to