Browse files

fix message decoding for chunked messages

  • Loading branch information...
1 parent fe23280 commit 116f8514e11f218b5d8cc22ede6d1aac852a05d8 @flaviogrossi committed May 13, 2014
Showing with 0 additions and 3 deletions.
  1. +0 −3 txmilter/codec.py
View
3 txmilter/codec.py
@@ -202,17 +202,14 @@ def decode(self):
while True:
length, rest = self._decode(''.join(self._data), '!I')
if length is None or length == 0:
- self._data = [rest]
break
cmd, rest = self._decode(rest, 'c')
if cmd is None:
- self._data = [rest]
break
data_len = length - 1
if len(rest) < data_len:
- self._data = [cmd, rest]
break
self._data = [rest[data_len:]]

0 comments on commit 116f851

Please sign in to comment.