mirror of
https://github.com/aaiyer/rfoo.git
synced 2025-06-07 06:23:00 +03:00
Connection.read() method fix
Removed an condition check that always failed and lead to IOException in server on every transaction.
This commit is contained in:
parent
d8d1ec544c
commit
16e1e417f5
@ -248,9 +248,6 @@ class Connection(object):
|
|||||||
raise EofError(len(buffer))
|
raise EofError(len(buffer))
|
||||||
buffer += data
|
buffer += data
|
||||||
|
|
||||||
if buffer[0] != INTEGER:
|
|
||||||
raise IOError()
|
|
||||||
|
|
||||||
length = _loads(buffer)
|
length = _loads(buffer)
|
||||||
buffer = self.recv(length)
|
buffer = self.recv(length)
|
||||||
while len(buffer) < length:
|
while len(buffer) < length:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user