I'm running the gstreamer server for kaldi, which uses tornado internally to provide an HTTP end-point for transcription, e.g. example.com:8888/dynamic/recognize
I think this is the relevant code:
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)
I'm not familiar with Tornado, but looking at tornado.web.Application
docs, I don't see any mention of timeouts in settings
.
I saw several other similar questions, e.g. this one, but they deal with the client side. This answer seems relevant, but I'm not sure how to apply it in my case.