Skip to content

connectionCount is incremented even no connection is created #21

Description

@pistej

If some error/exceptions occurs in borrow() -> createConnection(), variable $connectionCount is incremented but no connection exist (can't be returned to pool), next borrow connection is trying to pop connection from channel but there is no connection ...

I would suggest same fix as in this forked lib, can create MR: eltaline@e5f8b2d

Q: Assume from code, there is no way init (or create connection) again when is closed ?!

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