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

Add retryable connection #76

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

Add retryable connection #76

wants to merge 3 commits into from

Conversation

yhabteab
Copy link
Member

@yhabteab yhabteab commented Jul 17, 2023

Adds a new connection class that's used to retry some specific temporary database errors before giving up and crashing. The number of retries is set to 1 by default, but can be overridden when initiating the connection instance. There is also no time elapsing between the retries.

resolves #75

@cla-bot cla-bot bot added the cla/signed label Jul 17, 2023
@yhabteab yhabteab added the enhancement New feature or request label Jul 17, 2023
@yhabteab yhabteab added this to the v0.7.0 milestone Jul 17, 2023
@yhabteab yhabteab force-pushed the retryable-conn branch 2 times, most recently from be4e327 to fad4504 Compare July 17, 2023 10:07
@yhabteab yhabteab self-assigned this Sep 4, 2023
@lippserd
Copy link
Member

Is this already used somewhere?

@yhabteab
Copy link
Member Author

Is this already used somewhere?

Not yet, but this will replace the RetryableConnection in reporting module and x509 may make use of this.

src/RetryConnection.php Outdated Show resolved Hide resolved
@yhabteab yhabteab force-pushed the retryable-conn branch 5 times, most recently from 478b1be to 6bb8f9c Compare September 13, 2023 11:27
src/RetryConnection.php Outdated Show resolved Hide resolved
tests/Lib/RetryableConnection.php Outdated Show resolved Hide resolved
@nilmerg nilmerg removed this from the v0.7.0 milestone Sep 14, 2023
@nilmerg
Copy link
Member

nilmerg commented Sep 14, 2023

Since reporting has already an implementation for it and x509's daemon pings its own database the same as Icinga DB Web does in it's SNI hook with v1.1, we're postponing this to a later release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retryable Connection
3 participants