Skip to content

Shutdown from redis client takes a long time #3704

@daveah

Description

@daveah

If we run a redis-server from the shell with no persistence (in this case redis-7.2.3):

redis-server --save "" --appendonly no --loglevel verbose

Then, on the same machine hop into a python shell and run (redis-py 6.2.0):

from redis import Redis
redis.shutdown()

The redis server itself instantly exits, but the redis.shutdown() command does not return for about 5 seconds. It appears that the redis client is waiting for some form of network timeout before returning.
This is unaffected by any combination of the parameters (nosave, now, force).

This may be a regression from earlier versions, but we are not entirely sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions