We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9160c58 commit cc11d7cCopy full SHA for cc11d7c
tarantool/connection.py
@@ -168,6 +168,9 @@ def _recv(self, to_read):
168
raise NetworkError(socket.error(errno.ECONNRESET,
169
"Lost connection to server during query"))
170
else:
171
+ if len(tmp) == 0:
172
+ raise NetworkError(socket.error(errno.ECONNRESET,
173
+ "Lost connection to server during query"))
174
to_read -= len(tmp)
175
buf += tmp
176
return buf
0 commit comments