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

tor: Implement ControlPortReadyWaiter #1915

Merged
merged 8 commits into from
Mar 23, 2024

Conversation

alvasw
Copy link
Contributor

@alvasw alvasw commented Mar 23, 2024

Use the flow-component-based DirectoryWatcher to wait for the control port file and parse the control port file with the ControlPortFileParser afterward.

Ref: #1798

Consumers can asynchronously subscribe to directory events with the Flow components.

Ref: bisq-network#1798
Presently, we parse Tor's log file to detect when the control port is ready. This is unstable and could break with any Tor update. A better approach is to use Tor's 'ControlPortWriteToFile' config option and parse the control port from that file.

Ref: bisq-network#1798
Use the flow-component-based DirectoryWatcher to wait for the control port file and parse the control port file with the ControlPortFileParser afterward.

Ref: bisq-network#1798
@alvasw alvasw merged commit af4cb85 into bisq-network:main Mar 23, 2024
16 checks passed
@djing-chan djing-chan added the tor label Mar 31, 2024
@djing-chan djing-chan added this to the 2.0.2 milestone Mar 31, 2024
@alvasw alvasw deleted the implement_tor_control_port_waiter branch May 21, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants