Merge branch 'master' into dev

This commit is contained in:
Cloud Wu
2014-06-21 18:03:24 +08:00
3 changed files with 24 additions and 19 deletions

View File

@@ -10,7 +10,7 @@ local node_session = {}
local command = {}
local function read_response(sock)
local sz = sock:read(2)
local sz = socket.header(sock:read(2))
local msg = sock:read(sz)
return cluster.unpackresponse(msg) -- session, ok, data
end