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 unnecessary pings and add retry queries #196

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kkmuffme
Copy link
Contributor

@kkmuffme kkmuffme commented Jan 8, 2025

  • queries slower than heartbeat recheck_timeout would trigger unnecessary heartbeat pings
  • unnecessary heartbeat pings after we just pinged if less servers than retries
  • fix if ping (e.g. due to network congestion or physical distance) would exceed recheck_timeout
  • fix broken connection not removed if heartbeats disabled
  • automatically retry query if server went away (like WP core wpdb does https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/class-wpdb.php#L2274)

* queries slower than heartbeat recheck_timeout would trigger unnecessary heartbeat pings
* unnecessary heartbeat pings after we just pinged if less servers than retries
* fix if ping (e.g. due to network congestion or physical distance) would exceed recheck_timeout
…the server will not be reused and disconnected
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.

1 participant