(self)
| 62 | return True |
| 63 | |
| 64 | def write_eof(self): |
| 65 | # When the protocol half-closes the TCP connection, it expects the |
| 66 | # other end to close it. Simulate that. |
| 67 | if not self._eof: |
| 68 | self.loop.call_soon(self.close) |
| 69 | self._eof = True |
| 70 | |
| 71 | def close(self): |
| 72 | # Simulate how actual transports drop the connection. |
no outgoing calls
no test coverage detected