fix:高并发下503窗口关闭问题#145
Open
nekohy wants to merge 3 commits into
Open
Conversation
Member
|
感谢大佬的pr。 完全等待队列结束才关闭旧账号,这样会导致活跃 context 超过 我倾向于把原则改成:允许旧请求尽量自然结束,但不能为了等旧请求而阻塞当前账号切换,也不能让活跃 context 数量突破 也就是说, 强制关闭的选择规则可以是: 这样保证两个目标: 代价是:被强制关闭的 context 上如果还有未完成请求,这些请求会失败或中断。但这个代价是 |
Member
|
我来改吧,超时那个感觉没必要,很多配置低的机器,登录一次要2分钟。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.