cluster bugfix : add socket.header to decode bigendian header

This commit is contained in:
Cloud Wu
2014-06-21 18:03:08 +08:00
parent 078ac2bcd2
commit d910686cb8
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