Skip to content

Commit

Permalink
Fix buffer carry over bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kansi committed Apr 26, 2018
1 parent 69fe102 commit c6c66b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions abci/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def __handle_connection(self, socket, address):
if not data or msg_length == 0: return
try:
while data.tell() < msg_length:
result, code = read_message(data, Request)
result, code = read_message(data, Request)
if code == NODATA: return
if code == FRAGDATA:
data.seek(result)
carry_forward = data.read(1024)
carry_forward = data.read(msg_length)
break
req_type = result.WhichOneof("value")
response = self.protocol.process(req_type, result)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='abci',
version='0.4.2',
version='0.4.3',
description='Python based ABCI Server for Tendermint',
long_description=long_description,
url='https://github.com/davebryson/py-abci',
Expand Down

0 comments on commit c6c66b1

Please sign in to comment.