diff options
author | Rob Austein <sra@hactrn.net> | 2009-05-05 03:24:50 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-05-05 03:24:50 +0000 |
commit | 4110a31d0189db7b9a97d6eeaba0bf03b6877a3e (patch) | |
tree | 37e0747c20b3405d5dac0bf393f8bbd475da7d5f | |
parent | f49a0a660655746f4001fb66277731e5f562be8e (diff) |
Clean up properly on client timeout.
svn path=/rpkid/rpki/https.py; revision=2401
-rw-r--r-- | rpkid/rpki/https.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rpkid/rpki/https.py b/rpkid/rpki/https.py index b4c9087c..45f2a213 100644 --- a/rpkid/rpki/https.py +++ b/rpkid/rpki/https.py @@ -428,6 +428,12 @@ class http_client(http_stream): if self.get_terminator() is None: self.handle_body() + def handle_timeout(self): + if self.state != "idle": + self.log("Timeout while in state %s" % self.state) + http_stream.handle_timeout(self) + self.queue.closing(self) + class http_queue(object): log = logger |