aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/http.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-10-11 01:56:37 +0000
committerRob Austein <sra@hactrn.net>2010-10-11 01:56:37 +0000
commitbf0d6be34c3efab2cf97eb1411d2c4d3e13fe78f (patch)
tree947a982eef6f553a1cefa01876913cd4e82cca39 /rpkid/rpki/http.py
parentf24614429bd4d3416a3011320208ed07fbe29476 (diff)
Debugging tweaks
svn path=/rpkid/rpki/http.py; revision=3477
Diffstat (limited to 'rpkid/rpki/http.py')
-rw-r--r--rpkid/rpki/http.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/rpkid/rpki/http.py b/rpkid/rpki/http.py
index f1fbd9a7..829af063 100644
--- a/rpkid/rpki/http.py
+++ b/rpkid/rpki/http.py
@@ -652,9 +652,11 @@ class http_client(http_stream):
"""
try:
self.af, self.address = random.choice(addrinfo)
- self.log("Connecting to AF %r sockaddr %r" % (self.af, self.address))
+ self.log("Connecting to AF %s host %s port %s addr %s" % (self.af, self.host, self.port, self.address))
self.create_socket(self.af, socket.SOCK_STREAM)
self.connect((self.address, self.port))
+ if self.addr is None:
+ self.addr = (self.host, self.port)
except (rpki.async.ExitNow, SystemExit):
raise
except:
@@ -666,6 +668,7 @@ class http_client(http_stream):
"""
self.log("Socket connected")
self.set_state("idle")
+ assert self.queue.client is self
self.queue.send_request()
def set_state(self, state):