繁体   English   中英

使用龙卷风在Connexion(Swagger Codegen)Python服务器中异步

[英]Async in connexion (swagger codegen) python server using tornado

如果我将@ gen.coroutine添加到由connexion生成的请求处理方法中,它将停止工作-断开与客户端的连接,不返回任何内容。

如何连续使用连接+龙卷风? 例如gen.sleep? 如果我在不使用@ gen.coroutine的请求处理程序中生成gen.sleep,它不会等待指定的时间。

我找到了答案。 虽然不愉快。

https://waffle.io/zalando/connexion/cards/57c036758b96c67f0165fb9f

@funseiki ... giving it more though we would need to actually do quite some changes in other parts of the Connexion code to support Tornado async. For now the answer is "not possible". :/

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM