transit: ignore new data in "hung up" state
Apparently there's an intermittent condition in tests that follows this path. We used to ignore unrecognized states, but to improve test coverage I added a clause to catch them, and now that clause is happening where I didn't expect it.
This commit is contained in:
parent
ebe9df312e
commit
876dea8297
|
@ -243,6 +243,8 @@ class Connection(protocol.Protocol, policies.TimeoutMixin):
|
|||
raise BadHandshake("abandoned")
|
||||
if self.state == "records":
|
||||
return self.dataReceivedRECORDS()
|
||||
if self.state == "hung up":
|
||||
pass
|
||||
if isinstance(self.state, Exception): # for tests
|
||||
raise self.state
|
||||
raise ValueError("internal error: unknown state %s" % (self.state,))
|
||||
|
|
Loading…
Reference in New Issue
Block a user