aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-05-12 04:33:18 +0000
committerNick Mathewson <nickm@torproject.org>2005-05-12 04:33:18 +0000
commit7a50dee1573dfee07dea47f0eeaa3dd36b7ada86 (patch)
treedde59b0a5807fb97476a0df7168e43c2e73a5d41 /contrib
parent97663ea65d6c2d2f58fc574fe5e789fe0e091a1e (diff)
downloadtor-7a50dee1573dfee07dea47f0eeaa3dd36b7ada86.tar
tor-7a50dee1573dfee07dea47f0eeaa3dd36b7ada86.tar.gz
Commit patch to resolve bug 140
svn:r4194
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/TorControl.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/TorControl.py b/contrib/TorControl.py
index 8eb0d5e9c..9c1aba89c 100755
--- a/contrib/TorControl.py
+++ b/contrib/TorControl.py
@@ -209,7 +209,8 @@ def _receive_msg(s):
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 @@ def do_main_loop(host,port):
("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)