Changeset: f3f2550394bb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f3f2550394bb
Modified Files:
clients/python/monetdb/mapi.py
clients/python3/monetdb/mapi.py
Branch: default
Log Message:
fixed a bug where wrong about of bytes is read from socket
H: Enter commit message. Lines beginning with 'HG:' are removed.
diffs (24 lines):
diff --git a/clients/python/monetdb/mapi.py b/clients/python/monetdb/mapi.py
--- a/clients/python/monetdb/mapi.py
+++ b/clients/python/monetdb/mapi.py
@@ -236,7 +236,7 @@ class Server(object):
count = bytes
while count > 0:
try:
- recv = self.socket.recv(bytes)
+ recv = self.socket.recv(count)
if len(recv) == 0:
time.sleep(1)
logger.debug("II: package size: %i payload: %s" % (len(recv),
recv))
diff --git a/clients/python3/monetdb/mapi.py b/clients/python3/monetdb/mapi.py
--- a/clients/python3/monetdb/mapi.py
+++ b/clients/python3/monetdb/mapi.py
@@ -230,7 +230,7 @@ class Server:
count = bytes
while count > 0:
try:
- recv = self.socket.recv(bytes)
+ recv = self.socket.recv(count)
logger.debug("II: package size: %i payload: %s" % (len(recv),
recv))
except socket.error as error:
raise OperationalError(error[1])
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list