From dba8907745dde96eb6a86340ef26a7a6ab13196c Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 21 May 2009 21:12:23 +0000 Subject: 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 --- rpkid/rpki/https.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'rpkid/rpki/https.py') 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): -- cgit v1.2.3