Skip to content

fix: try_many_times: retry 5 times instead of 60 #6811

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WofWca
Copy link
Collaborator

@WofWca WofWca commented Apr 17, 2025

If 5 times is not enough, 60 will probably not be enough either.

This is mainly an attempt of improving the situation with
deltachat/deltachat-desktop#3959.

The remove_account RPC call would make the RPC server
stop responding to all other requests,
which is basically equivalent to a one minute hang.

Additionally, try_many_times appears to be unnecessary after
#5814 (comment).

If 5 times is not enough, 60 will probably not be enough either.

This is mainly an attempt of improving the situation with
deltachat/deltachat-desktop#3959.

The `remove_account` RPC call would make the RPC server
stop responding to all other requests,
which is basically equivalent to a one minute hang.

Additionally, `try_many_times` appears to be unnecessary after
#5814 (comment).
@WofWca WofWca added the bug Something is not working label Apr 17, 2025
@iequidoo
Copy link
Collaborator

The remove_account RPC call would make the RPC server
stop responding to all other requests,
which is basically equivalent to a one minute hang.

The write lock isn't actually needed for the whole time of an account removal, i think this may be fixed separately. But i agree that 60 s is too much, better if the user receives feedback earlier and retries the removal if needed.

@iequidoo iequidoo requested a review from link2xt May 12, 2025 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants