-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
Redis client defaulting to using wrong port #2850
Comments
Interesting. I will need to step through the code to find the cause, but yes I agree that your expectation is a reasonable one. I might have expected 6380 if you had not specified a port manually. |
Does it behave correctly if you pass |
I'd also be interested in what obj.ToString() returns, but I can check that tomorrow. |
Hi @mgravell It acts the same if you pass the obj directly |
I've checked through the code, and the only references I can find to 6380 are:
So: I'm not currently sure what is happening, but: I'm looking. I note that Microsoft.AspNetCore.SignalR.StackExchangeRedis 7.0.10 refs SE.Redis 2.2.4, which makes comparing code quite hard - I wonder if you could explicitly add a package ref to current SE.Redis: <PackageReference Include="StackExchange.Redis" Version="2.8.24" /> This should be drop-in compatible, and will reduce the number of variables. I also find it interesting that it is failing to connect on the subscription connection; I wonder whether or not it successfully connected the interactive connection. You could also try capturing the connect log, via the optional this.redis = ConnectionMultiplexer.Connect(obj.ToString(), Console.Out); Side note: I tested the |
unrelated, but additional thought on this being the subscription connection: I don't know whether Valkey supports RESP3 - I suspect it does; in which case on up-to-date SE.Redis you could also perhaps try: var obj = new ConfigurationOptions()
{
Ssl = true,
EndPoints = { { "YOUR_CACHE_HOST", 6379 } },
Protocol = RedisProtocol.Resp3,
}; (we currently treat RESP3 as strictly opt-in, due to observable differences in some cases) |
My AWS experiment seems to have been unsuccessful, in that the created cluster does not seem to be routable; I can get an IPv4 address, but I cannot establish a socket; likewise, |
I'm still struggling to get a suitable endpoint to test against directly, so: still no repro or information. However, if you are able to use the |
Hi
I'm using client version
<PackageReference Include="Microsoft.AspNetCore.SignalR.StackExchangeRedis" Version="7.0.10" />
I'm using AWS valkey redis. It requires ssl to be enable and uses port 6379, I cannot change either of these things. So I make a configuration object and try to connect to the cache.
However I get the following error when trying to connect
Why is it trying to use port 6380? I've specified 6379,
Any help greatly appreciated.
The text was updated successfully, but these errors were encountered: