Explorar o código

Fix patch to TorControl.py

svn:r4195
Nick Mathewson %!s(int64=21) %!d(string=hai) anos
pai
achega
0b15170cf3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      contrib/TorControl.py

+ 1 - 1
contrib/TorControl.py

@@ -210,7 +210,7 @@ def _receive_msg(s):
   length,type = struct.unpack("!HH",header)
   if length:
     while length > len(body):
-      body += s.recv(length)
+      body += s.recv(length-len(body))
   return length,type,body
 
 def receive_message(s):