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: Add retry ability to tor-control and misc fixes #2360

Merged
merged 2 commits into from
Mar 13, 2024
Merged

Conversation

leblowl
Copy link
Collaborator

@leblowl leblowl commented Mar 13, 2024

We were getting an uncaught ECONNREFUSED exception on iOS due to the Tor control port not getting updated after the app has been resumed on iOS, so this commit fixes that and refactors the tor-control code in order to add retry ability and fix misc issues with that code.

Solution for: #2352

Pull Request Checklist

  • I have linked this PR to a related GitHub issue.
  • I have added a description of the change (and Github issue number, if any) to the root CHANGELOG.md.

(Optional) Mobile checklist

Please ensure you completed the following checks if you did any changes to the mobile package:

  • I have run e2e tests for mobile
  • I have updated base screenshots for visual regression tests

@leblowl leblowl requested a review from EmiM March 13, 2024 03:08

this.isSending = true
await this.connect()
// FIXME: Errors are not caught here. Is this what we want?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should handle that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that this is how it was in the previous version of this code, so I haven't changed anything

We were getting an uncaught ECONNREFUSED exception on iOS (perhaps due
to a race condition), so this commit retries until we connect. It also
fixes some existing code that appeared to be broken in other ways.
@leblowl leblowl merged commit 9517f08 into develop Mar 13, 2024
16 of 20 checks passed
leblowl pushed a commit that referenced this pull request Mar 13, 2024
…2360)

We were getting an uncaught ECONNREFUSED exception on iOS due to the Tor control port not getting updated after the app has been resumed on iOS, so this commit fixes that and refactors the tor-control code in order to add retry ability and fix misc issues with that code.
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.

2 participants