2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Fix python3 collective leader

rpc needs to be fully binary
This commit is contained in:
Jarrod Johnson 2019-10-11 11:11:27 -04:00
parent b81e5fb3ce
commit e008932389

View File

@ -591,7 +591,7 @@ def relay_slaved_requests(name, listener, vers):
raise Exception("Unexpected loss of node in followers: " + name)
sz = struct.unpack('!Q', msg)[0]
if sz != 0:
rpc = ''
rpc = b''
while len(rpc) < sz:
nrpc = listener.recv(sz - len(rpc))
if not nrpc: