Skip to content

Commit

Permalink
Merge branch 'master' of github.com:twitter/twemproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
manjuraj committed Jun 18, 2015
2 parents 5b04fee + bcf721a commit 01ba86a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 2 additions & 0 deletions src/proto/nc_redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,8 @@ redis_parse_req(struct msg *r)
case LF:
if (redis_argz(r)) {
goto done;
} else if (r->narg == 1) {
goto error;
} else if (redis_argeval(r)) {
state = SW_ARG1_LEN;
} else {
Expand Down
11 changes: 1 addition & 10 deletions tests/test_redis/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,4 @@ def test_wrong_argc():
s = get_conn()

s.sendall('*1\r\n$3\r\nGET\r\n')
assert_fail('timed out', s.recv, 10000)

## assert('' == s.recv(1000)) # peer is closed
#assert(data.startswith('-ERR wrong number of arguments'))

#s.sendall('*3\r\n$3\r\nSET\r\n$5\r\nkkkkk\r\n$5\r\nvvvvv\r\n')
## s.sendall('*2\r\n$3\r\nGET\r\n$5\r\nkkkkk\r\n')
#data = s.recv(10000)
#assert(data == '+OK\r\n')

assert('' == s.recv(1000)) # peer is closed

0 comments on commit 01ba86a

Please sign in to comment.