Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix connection closing issue in conncection pool #113

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

Cycloctane
Copy link
Contributor

Fixes #112

  • Replace conn.close() with conn.ensure_closed() in Pool.fill_free_pool() and Pool.wait_closed().
  • Update docstring of Connection.ensure_closed

long2ice and others added 4 commits December 2, 2024 17:12
Was used the maximum value of a 64-bit unsigned integer
(18446744073709551615) to indicate an undefined or special state for
affected_rows, apparently to mimic MySQL's behavior.
To avoid overflow issues and improve compatibility,
now use -1, which serves the same purpose in a signed integer context.
This change avoids compilation warnings.
-  use `conn.ensure_closed()` in `fill_free_pool()` and `wait_closed()`
- fix docstring of `Connection.ensure_closed`
@long2ice long2ice force-pushed the dev branch 3 times, most recently from a036841 to 6c16f3b Compare December 12, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection pool can not close its connections properly
2 participants