Fix exception on TCP liveness check
The following would cause an exception to be raised:
nc -z -v -w 3 <host> <port>
@@ -137,6 +137,7 @@ class HttpToolsProtocol(asyncio.Protocol):
if self.cycle and not self.cycle.response_complete:
self.cycle.disconnected = True
self.message_event.set()
+ if self.flow is not None:
self.flow.resume_writing()
def eof_received(self):
