| 101 | worker = self |
| 102 | |
| 103 | class _HTTPServer(tornado.httpserver.HTTPServer): |
| 104 | |
| 105 | def on_close(self, server_conn): |
| 106 | worker.handle_request() |
| 107 | super().on_close(server_conn) |
| 108 | |
| 109 | if self.cfg.is_ssl: |
| 110 | server = _HTTPServer(app, ssl_options=ssl_context(self.cfg)) |