diff options
author | Rob Austein <sra@hactrn.net> | 2009-05-21 21:12:23 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-05-21 21:12:23 +0000 |
commit | dba8907745dde96eb6a86340ef26a7a6ab13196c (patch) | |
tree | f3f37538f7d59c17ddd9830072a92076655c12c4 /rpkid/rpki/https.py | |
parent | 9b72fb6f0191cef5b16c26fca543d486688592c9 (diff) |
rpkid hosting (self_id > 1) now working! Not well-tested yet.
testpoke.py really isn't the right tool for some of what testbed.py is
doing (wiring class_names into the YAML file causes spurious errors).
svn path=/rpkid/rpki/https.py; revision=2447
Diffstat (limited to 'rpkid/rpki/https.py')
-rw-r--r-- | rpkid/rpki/https.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rpkid/rpki/https.py b/rpkid/rpki/https.py index f1e4cece..fd13b3d8 100644 --- a/rpkid/rpki/https.py +++ b/rpkid/rpki/https.py @@ -50,7 +50,7 @@ rpki_content_type = "application/x-rpki" # ================================================================ -debug = True +debug = False want_persistent_client = True want_persistent_server = True @@ -563,7 +563,8 @@ def client(msg, client_key, client_cert, server_ta, url, callback, errback): hostport = (u.hostname or "localhost", u.port or 80) - rpki.log.debug("Created request %r for %r" % (request, hostport)) + if debug: + rpki.log.debug("Created request %r for %r" % (request, hostport)) if hostport not in queues: queues[hostport] = http_queue(hostport) queues[hostport].request(request) @@ -571,7 +572,8 @@ def client(msg, client_key, client_cert, server_ta, url, callback, errback): # Defer connection attempt until after we've had time to process any # pending I/O events, in case connections have closed. - rpki.log.debug("Scheduling connection startup for %r" % request) + if debug: + rpki.log.debug("Scheduling connection startup for %r" % request) rpki.async.timer(queues[hostport].restart, errback).set(None) def server(handlers, server_key, server_cert, port, host ="", client_ta = None, dynamic_https_trust_anchor = None): |