| 20 | # handle_stream may be a coroutine and any exception in its |
| 21 | # Future will be logged. |
| 22 | class TestServer(TCPServer): |
| 23 | @gen.coroutine |
| 24 | def handle_stream(self, stream, address): |
| 25 | yield stream.read_bytes(len(b"hello")) |
| 26 | stream.close() |
| 27 | 1 / 0 |
| 28 | |
| 29 | server = client = None |
| 30 | try: |
no outgoing calls