diff options
author | Rob Austein <sra@hactrn.net> | 2014-09-19 23:32:16 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-09-19 23:32:16 +0000 |
commit | 3343f587e25c153333981cc4c9ad43c95516c279 (patch) | |
tree | f88cb15624169565167fcfcb4228938dc9e493f4 /rpki/pubd.py | |
parent | bcd211ab6dfb899733d04edaa909115ae7e83c3e (diff) |
Convert irdbd from SAX to lxml.etree.
svn path=/branches/tk705/; revision=5962
Diffstat (limited to 'rpki/pubd.py')
-rw-r--r-- | rpki/pubd.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py index 3e7d4506..3bb139cb 100644 --- a/rpki/pubd.py +++ b/rpki/pubd.py @@ -132,9 +132,10 @@ class main(object): Process one PDU from the IRBE. """ - from django.db import transaction + from django.db import transaction, connection try: + connection.cursor() # Reconnect to mysqld if necessary q_cms = rpki.publication_control.cms_msg_no_sax(DER = q_der) q_msg = q_cms.unwrap((self.bpki_ta, self.irbe_cert)) self.irbe_cms_timestamp = q_cms.check_replay(self.irbe_cms_timestamp, "control") @@ -220,9 +221,10 @@ class main(object): Process one PDU from a client. """ - from django.db import transaction + from django.db import transaction, connection try: + connection.cursor() # Reconnect to mysqld if necessary match = self.client_url_regexp.search(request.path) if match is None: raise rpki.exceptions.BadContactURL("Bad path: %s" % request.path) |