We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
用demo里的异步消费总是提示 request timeout
感觉是 producer 247行
var cancel context.CancelFunc ctx, cancel = context.WithTimeout(ctx, 3*time.Second) defer cancel()
这里调用了cancel(),但是 在 go primitive.WithRecover 这里起了个协程等待响应。 cancel()大概率会 先执行,然后执行了这里的代码。
去了cancel(),应该也不会有内存泄露,因为select的另一个分支会执行
The text was updated successfully, but these errors were encountered:
[ISSUE #701] Fix timeout of SendAsync
e5d5631
Successfully merging a pull request may close this issue.
用demo里的异步消费总是提示 request timeout
感觉是 producer 247行
这里调用了cancel(),但是 在 go primitive.WithRecover 这里起了个协程等待响应。
cancel()大概率会 先执行,然后执行了这里的代码。
去了cancel(),应该也不会有内存泄露,因为select的另一个分支会执行
The text was updated successfully, but these errors were encountered: