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

[or-cvs] Commit patch to resolve bug 140



Update of /home/or/cvsroot/tor/contrib
In directory moria.mit.edu:/tmp/cvs-serv16524

Modified Files:
	TorControl.py 
Log Message:
Commit patch to resolve bug 140

Index: TorControl.py
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/TorControl.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- TorControl.py	5 Apr 2005 22:57:39 -0000	1.7
+++ TorControl.py	12 May 2005 04:33:18 -0000	1.8
@@ -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):
@@ -431,7 +432,10 @@
                            ("frebnitz.com", "5.6.7.8"),
                            (".", "abacinator.onion")])`
     print `extend_circuit(s,0,["moria1"])`
-    send_signal(s,1)
+    print '========'
+    print `extend_circuit(s,0,[""])`
+    print '========'
+    #send_signal(s,1)
     #save_conf(s)