Fixed bug in socket client not working properly when command length was too long
authorLaurent Bessard
Wed, 20 Feb 2013 18:46:26 +0100
changeset 23 41616a8c80a7
parent 22 45982ef9370b
child 24 04205032298b
Fixed bug in socket client not working properly when command length was too long
LPCManager.py
--- a/LPCManager.py	Wed Feb 20 18:45:28 2013 +0100
+++ b/LPCManager.py	Wed Feb 20 18:46:26 2013 +0100
@@ -1808,7 +1808,7 @@
     
     def readline(self):
         idx = self.Buffer.find("\n")
-        if idx == -1:
+        while idx == -1:
             self.Buffer += self.socket.recv(2048)
             idx = self.Buffer.find("\n")
         if idx != -1: