try reading a complete chunk
This commit is contained in:
parent
450e448713
commit
199aa96aeb
@ -1420,6 +1420,9 @@ class ZK(object):
|
|||||||
for _retries in range(3):
|
for _retries in range(3):
|
||||||
command = 1504 #CMD_READ_BUFFER
|
command = 1504 #CMD_READ_BUFFER
|
||||||
command_string = pack('<ii', start, size)
|
command_string = pack('<ii', start, size)
|
||||||
|
if self.tcp:
|
||||||
|
response_size = size + 32
|
||||||
|
else:
|
||||||
response_size = 1024 + 8
|
response_size = 1024 + 8
|
||||||
cmd_response = self.__send_command(command, command_string, response_size)
|
cmd_response = self.__send_command(command, command_string, response_size)
|
||||||
data = self.__recieve_chunk()
|
data = self.__recieve_chunk()
|
||||||
|
Loading…
Reference in New Issue
Block a user