Skip to content

Pubsub aclose causes hanging due to wait_closed called internally #3941

@tgwasira

Description

@tgwasira

Having created a pubsub for asynchronous redis, when it's time to close it using aclose, this function calls await self.connection.disconnect() which in turn calls await self._writer.wait_closed(). At this point, it just hangs and doesn't do anything. My work around currently is to first call disconnect with nowait=True i.e. await pubsub.connection.disconnect(nowait=True) but this is hacky.

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