Conversation
StackExchange.Redis 在连不上时会在异常消息尾巴上附一句 "…use abortConnect=false in your connection string or AbortOnConnectFail=false; in your code"。 这句话经 ProtocolConnectionException 一路走到宿主的连接失败提示框里,有两重坏处: 用户根本没有"连接字符串"可改,而那恰恰是本插件**刻意不采纳**的做法 —— 设 false 会让 ConnectAsync 成功返回一个后台重试中的对象,界面于是画出一个空键树、 然后每个操作各自超时。所以在出口处剪掉。 补两条纪律进 README:首次连接必须大声失败(AbortOnConnectFail = true), 以及这一条"不把库写给开发者的建议摆给用户"。 新增 RedisWorkspaceProviderTests:死端口必抛 ProtocolConnectionException、 消息里要带端点、且不含 abortConnect —— 宿主不会为一条连不上的连接开标签页, 不抛就等于什么都没发生。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01J5gfiQ8G3JfqomjRkuHmPP
…essage Redis 连不上时别把库写给开发者的建议摆给用户
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.