Skip to content

Redis connection release after reset #3043

Closed
@cpvandehey

Description

@cpvandehey

Version:
latest - 5.0.1

Platform:
python 3.9 (seems irrelevant)

Description
sync release method
async release method

The above two methods are invoked whenever a long lived connection in a ConnectionPool are finished and to be recycled.

When a "reset" is called:
sync reset method
async reset method

There are issues that come about when in progress connections are released AFTER a different thread/coroutine runs a reset.

I think some basic try/except logic to wrap the release calls in case there are connection errors would be nice. It would also be useful to have any exception while releasing be the catalyst for disconnection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions