Skip to content

RefCell<T> already borrowed #34

Closed
Closed
@radford

Description

@radford

I'm seeing pool.get_connection() return connections where the RefCell is WRITING (as opposed to UNUSED like it should be), so that the first use of the connection fails with RefCell<T> already borrowed. If I sleep(1) after getting the connection, then it becomes UNUSED, so it seems like a race condition.

This only happens when the client is cond.wait()ing in get_connection(), so that it gets a connection that was just previously used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions