diff options
author | Rob Austein <sra@hactrn.net> | 2009-04-30 03:48:33 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-04-30 03:48:33 +0000 |
commit | da932314a65093bc68005b467cb9e23618826ddd (patch) | |
tree | 257cbe544d1837184877ba0f8776a1e63b9befd6 | |
parent | 807f3533e0f38e62224ca578597314ff30ae550c (diff) |
Checkpoint
svn path=/scripts/async-http.py; revision=2379
-rw-r--r-- | scripts/async-http.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/async-http.py b/scripts/async-http.py index 5b85cf24..8ba6ad49 100644 --- a/scripts/async-http.py +++ b/scripts/async-http.py @@ -44,7 +44,7 @@ import rpki.async debug = True -want_persistent_client = False +want_persistent_client = True want_persistent_server = False class http_message(object): @@ -296,10 +296,11 @@ class http_client(http_stream): print "[%s: Ignoring empty response received while closing]" % repr(self) return else: - print "[%s: Unexpected state]" % repr(self) + raise RuntimeError, "[%s: Unexpected state]" % repr(self) print "Reply:" print self.msg print + self.state = "idle" msg = self.narrator.next_request(self.hostport, not self.expect_close) if msg is not None: if debug: print "[%s: Got a new message to send from my queue]" % repr(self) |