Repository navigation
fix: parse protocol-relative Redis URLs as TCP connections - #2125
Merged
PavelPashov merged 1 commit intoJun 4, 2026
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Reviewed by Cursor Bugbot for commit b6c66a9. Configure here.
PavelPashov
force-pushed
the
fix/protocol-relative-url-parsing
branch
from
June 4, 2026 09:57
b6c66a9 to
032a8a1
Compare
nkaradzhov
approved these changes
Jun 4, 2026
|
🎉 This PR is included in version 5.11.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.

Fixes #2124
Note
Low Risk
Localized URL parsing fix with tests; no auth or connection logic changes beyond correct options for // URLs.
Overview
parseURLnow treats strings starting with//as protocol-relative Redis TCP URLs instead of Unix socket paths (which also start with/).Those URLs are parsed with an implicit
redis:scheme, so host, port, query options, and path-as-dbbehave likeredis:///rediss://. Unix socket handling is unchanged for paths that are a single leading slash (e.g./tmp.sock). Comments note a possible future major-version break: require explicitredis:///rediss://instead of//.Unit tests cover
//host:port, query params, anddbin the path.Reviewed by Cursor Bugbot for commit 032a8a1. Bugbot is set up for automated code reviews on this repo. Configure here.