-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
通过协程异步执行数据库写入,由于http已返回信息,导致Error: context canceled #4105
Comments
需要new一个ctx,不能用http传入的上下文吧 |
You need a new ctx, you can’t use the context passed in by http. |
刚升到2.0的时候遇到过这个问题,后来修复过,目前用最新版的又出现了 |
I encountered this problem when I first upgraded to 2.0, but it was fixed later, and now it appears again with the latest version. |
不要用原来的ctx,或者你可以把你的代码发来看看 |
Don't use the original ctx, or you can send your code for a look |
文档有写: 如果不想另起一个context可以直接加 |
The document says: If you don’t want to start a new context, you can add |
通过协程异步执行数据库写入,由于http已返回信息,导致Error: context canceled
使用的是sqlserver 2008 r2 数据库,goframe 版本是 2.8.2
The text was updated successfully, but these errors were encountered: