Skip to content

Connections can end up in inconsistent state due to except Exception: instead of bare except: #360

Closed
@leifkb

Description

@leifkb

The changelog for 2.7.3 mentions all bare except:s have been changed to except Exception:. Unfortunately, this can sometimes cause connections to be released to the pool in an inconsistent state.

Here's a script that demonstrates the problem using gevent timeouts: https://gist.github.com/leifkb/5871666 And a patch: https://gist.github.com/leifkb/5871691

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