Changeset: 2fb45e0d559f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2fb45e0d559f
Modified Files:
        clients/python/monetdb/mapi2.py
        clients/python/monetdb/mapi3.py
Branch: Jul2012
Log Message:

fixed a bug where wrong about of bytes is read from socket


diffs (24 lines):

diff --git a/clients/python/monetdb/mapi2.py b/clients/python/monetdb/mapi2.py
--- a/clients/python/monetdb/mapi2.py
+++ b/clients/python/monetdb/mapi2.py
@@ -227,7 +227,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, error:
                 raise OperationalError(error[1])
diff --git a/clients/python/monetdb/mapi3.py b/clients/python/monetdb/mapi3.py
--- a/clients/python/monetdb/mapi3.py
+++ b/clients/python/monetdb/mapi3.py
@@ -233,7 +233,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

Reply via email to