Skip to content

Connections are left in an invalid state on interrupt #1128

Closed
@Chronial

Description

@Chronial

Version: Starting with 3.0.0, introduced by this commit: 04784cb

Thanks to the github related feature, I noticed that this is in fact a duplicate of #360 from 2013 – it was fixed back then in 80baa99. But 04784cb (which was released as part of 3.0.0) accidentally reversed that change, so the bug is back.

How to reproduce

r = redis.Redis(host='localhost', port=6379, db=0)
try:
    print("Press Ctrl-C now")
    r.brpop(['nonexist'])
finally:
    print("This hangs:")
    r.set('status', 'down')
    print("We never get here")

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