Skip to content

Complete resource cleanup timeout handling - #66

Open
RozmiDan wants to merge 4 commits into
add_timeout_setting_for_clearing_server_resourcesfrom
complete_cleanup_timeout
Open

RozmiDan wants to merge 4 commits into
add_timeout_setting_for_clearing_server_resourcesfrom
complete_cleanup_timeout

Conversation

@RozmiDan

Copy link
Copy Markdown
Contributor

Apply CleanupTimeout to the remaining driver-managed cleanup paths after both successful and failed operations.

  • Use the configured timeout for statement, cursor and connection cleanup, including database/sql and pool connections.
  • Bound internal result and statement cleanup to prevent hangs during network operations.
  • Keep the request watcher active during internal metadata queries.
  • Cancel unfinished BLOB parameters with an independent cleanup context and preserve the original error.
    Explicit caller contexts remain unchanged. Pool connection disposal now defaults to 5 seconds instead of 15.

Use CleanupTimeout for automatic statement, cursor and connection cleanup
after successful and failed operations, including database/sql and pool
connections.

Keep explicit caller contexts unchanged. Pool connection disposal now
defaults to 5 seconds instead of 15.
Bound internal result cleanup and statement release with CleanupTimeout.
Close the transport if cleanup stalls and preserve the request watcher
during internal metadata queries.

Return statement cleanup errors together with the original error.
Cancel unfinished BLOB parameters with an independent cleanup context
when parameter encoding fails, including failures during writer close.

Preserve the original error and include any cleanup failure.
Skip cancellation when the connection is already closed.
@RozmiDan RozmiDan added this to the v0.8.0 milestone Nov 27, 2026
@RozmiDan RozmiDan self-assigned this Nov 27, 2026
@RozmiDan RozmiDan added the needs information Further information is requested label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs information Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant