patch to resolve task 140

Geoffrey Goodell goodell at cassandra.eecs.harvard.edu
Thu May 12 03:31:41 UTC 2005


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

Geoff

-------------- next part --------------
--- 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):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20050511/b1951da3/attachment.pgp>


More information about the tor-dev mailing list