-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当请求被取消的时候,任务被CancelledError,但是连接没有被正确回收 #100
Comments
是的,我也遇到了这个问题,我是使用sanic框架,并且使用了tortoise-orm==0.19.1,它默认优先使用asyncmy包,导致当客户端取消请求时,连接紊乱,当前的请求sql,拿到的是上个接口的sql查询结果,然后tortoise拿到数据去做映射,结果报keyerror try: |
同样的问题。被困扰了很久。 打算切换到aiomysql了。 |
@canghai118 可以试下在nginx上 新增 |
使用sanic,当请求正在处理 await self._waiter 的时候,客服端主动取消请求,这个时候 self._connection.rollback() 会失败,数据库连接一直没办法被回收。
The text was updated successfully, but these errors were encountered: