Skip to content
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

lazyConnection stops reconnecting #146

Open
janisare opened this issue Jan 2, 2021 · 0 comments
Open

lazyConnection stops reconnecting #146

janisare opened this issue Jan 2, 2021 · 0 comments

Comments

@janisare
Copy link

janisare commented Jan 2, 2021

if dbid is provided, lazyConnection will loseConnection and stop reconnecting on redis server restart etc.
Connection should not be closed here:

    if self.dbid is not None:
        try:
            response = yield self.select(self.dbid)
            if isinstance(response, ResponseError):
                raise response
        except Exception as e:
            self.factory.continueTrying = False
            self.transport.loseConnection()

            msg = "Redis error: could not set dbid=%s: %s" % \
                  (self.dbid, str(e))
            self.factory.connectionError(msg)
            if self.factory.isLazy:
                log.msg(msg)
            defer.returnValue(None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant