-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Pubsub Subscription reconnects every 3 seconds #2139
Comments
Have the same issue.
|
Getting the exact same thing - issue (as expected) resolved once i changed version from v9 back to v8 |
The main thing I think at least needs some documentation when it comes to subscribing, especially when it comes to subscribing to Make sure the client does not have a
Correct me if I'm wrong @vmihailenco |
same issue using the universal client (tested case is single instance). changing the connection options to ReadTimeout:0 and WriteTimeout:0 doesn't do anything: Also tested sending pubs every 1-second. Messages are received without a problem, reconnect happens nonetheless. Tested with 9.0beta1 and 9.0beta2 and Redis-Server v7 |
fix by #2176 |
Pubsub subscription disconnects and reconnects every 3 seconds, raising an i/o timeout error.
Expected Behavior
Work as intended, without raising any errors
Current Behavior
Disconnects from Redis & logs
discarding bad PubSub connection: read tcp [::1]:50044->[::1]:6379: i/o timeout
every 3 seconds.Here are the logs from my redis server, running default configuration with verbose loglevel:
From what I noticed, everything works as expected when I downgrade to v8.
Steps to Reproduce
Code above results in:
Context (Environment)
golang:1.18-alpine
and got the same result)The text was updated successfully, but these errors were encountered: