-
Notifications
You must be signed in to change notification settings - Fork 505
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
Fix:SUBSCRIBE can't update last interaction time #335
Conversation
Act like redis,SUBSCRIBE must update last interaction time while a publish message received, otherwise this channel may be closed for timeout reason by default.
good catch @smartlee |
@Mergifyio backport 1.3 |
Act like Redis, SUBSCRIBE must update the last interaction time while a publish message received, otherwise, this channel may be closed for timeout reasons by default. (cherry picked from commit 9a0bc14)
Command
|
@git-hulk Although there is a problem, i don't think it is right way to fix, because we just add reply to libevent buffer instead of writing to clients successfully, clients may not read anythings after sending subscribe some channels, so we never kill these clients since of timeout. This commit may plant a new bug. |
so Redis updates the last interaction time after writing to the client socket buffer? |
yep |
seems we didn't have a fast way to do that, any advice to workaround? |
Yes, there is no a easy way, maybe enable libevent write event and set appropriate water level |
okay |
…che#335) Act like Redis, SUBSCRIBE must update the last interaction time while a publish message received, otherwise, this channel may be closed for timeout reasons by default.
Act like redis,SUBSCRIBE must update last interaction time while a publish message received, otherwise this channel may be closed for timeout reason by default.