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 one single attempt to reconnect to the Core in case of EventReqestManager disconnection #7747

Merged

Conversation

kozlovsky
Copy link
Contributor

The connection of EventRequestManager to Core sometimes breaks for unknown reasons. Usually, the broken connection means that the Core process stopped with some error. However, sometimes it seems that the connection can be broken while the Core is still functioning (an example). In this case, the current logic of EventRequestManager does nothing and does not attempt to reconnect.

This PR adds a single attempt to reconnect to the Core. It should be enough in case the connection is broken by accident.

I checked that the PR logic works as expected; it may be non-trivial to write a full test for it.

If the Core truly crashed because of the database corruption error, CoreManager will restart it and reconnect EventRequestManager again.

@kozlovsky kozlovsky requested review from a team and xoriole and removed request for a team December 4, 2023 10:52
@kozlovsky kozlovsky merged commit 35ff076 into Tribler:release/7.13 Dec 4, 2023
15 checks passed
@kozlovsky kozlovsky deleted the fix/event_manager_reconnect branch December 4, 2023 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants