Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在提出此拉取请求时,我确认了以下几点(请复选框):
填写PR内容:
出问题的代码片段如下:
当
getVersionInfo
和wrap
内发包出错(如超时)时会导致ActionHandler的协程失活,从而无法接受后续bot连接以及无法推送新消息。于是让创建producer的scope和ConnectFactory绑定在一起
同时修改ConnectFactory的scope源头:
希望可以解决这个问题。
可能断连时第二次无法继续连接的bug也会在这里得到修复我的bot是直接给ActionHandler暴力写了个SupervisorJob解决的,like this