0
我爲kaldi運行gstreamer server,它在內部使用龍捲風爲轉錄提供HTTP終點,例如, example.com:8888/dynamic/recognize如何在Tornado服務器中設置請求超時?
我認爲這是相關代碼:
class Application(tornado.web.Application):
def __init__(self):
settings = dict(
template_path=os.path.join(os.path.dirname(os.path.dirname(__file__)), "templates"),
static_path=os.path.join(os.path.dirname(os.path.dirname(__file__)), "static"),
autoescape=None,
)
handlers = [
[...]
(r"/client/dynamic/recognize", HttpChunkedRecognizeHandler),
[...],
]
tornado.web.Application.__init__(self, handlers, **settings)
我不熟悉的龍捲風,但是看着tornado.web.Application
docs,我不請參閱settings
中的任何超時提示。
我看到其他幾個類似的問題,例如, this one,但他們處理客戶端。 This answer似乎相關,但我不知道如何應用它在我的情況。