[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

patch to resolve task 140



Please consider this patch, which appears to resolve task 140.

Geoff

--- TorControl.py	2005-05-11 23:22:55.000000000 -0400
+++ TorControl.new.py	2005-05-11 23:22:45.000000000 -0400
@@ -209,7 +209,8 @@
   header = s.recv(4)
   length,type = struct.unpack("!HH",header)
   if length:
-    body = s.recv(length)
+    while length > len(body):
+      body += s.recv(length)
   return length,type,body
 
 def receive_message(s):

Attachment: signature.asc
Description: Digital signature