Skip to content

ConnectionPool has no close #229

Open
@kimharo

Description

with happybase.ConnectionPool(10) as pool: <- need this or close() function
  with pool.connection() as conn:
     xxxxxx

there is no remove resource in ConnectionPool. so i close connection manually.

        try:
            while True:
                conn = pool._queue.get(True, 0)
                conn.close()
        except Exception as e:
            pass

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