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:
Sergey Omelchenko 2017-11-13 18:49:37 +03:00 committed by GitHub
parent d8d1ec544c
commit 16e1e417f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,9 +248,6 @@ class Connection(object):
raise EofError(len(buffer))
buffer += data
if buffer[0] != INTEGER:
raise IOError()
length = _loads(buffer)
buffer = self.recv(length)
while len(buffer) < length: