(self, data)
| 1718 | self.transport = transport |
| 1719 | |
| 1720 | def data_received(self, data): |
| 1721 | if data == b'hello': |
| 1722 | self.transport.write(b'world') |
| 1723 | # pause reading would make incoming data stay in the sslobj |
| 1724 | self.transport.pause_reading() |
| 1725 | else: |
| 1726 | nonlocal extra |
| 1727 | extra = data |
| 1728 | |
| 1729 | def connection_lost(self, exc): |
| 1730 | if exc is None: |
no test coverage detected