龙卷风如何显式打开 keep_alive ?我正在使用 HTTP 1.0 客户端,并且 tornado 不会杀死错误关闭的连接,并且它们会保持在(0.00/0/0)的 ESTABLISHED 状态。
tornado.options.parse_command_line()
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), "templates"),
static_path=os.path.join(os.path.dirname(__file__), "static"),
cookie_secret="iouoihiohoil]l]lopjiuguyguftyfgvhubjbkjnkm[p[TP1o/",
xsrf_cookies=False,
autoescape="xhtml_escape",
)
app = tornado.web.Application(handlers=[
(r"/high_score", handlers.HighScoreHandler),], **settings)
http_server = tornado.httpserver.HTTPServer(app)
http_server.listen(7823)