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 ControlPortFileParser #1914

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

alvasw
Copy link
Contributor

@alvasw alvasw commented Mar 23, 2024

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: #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
@alvasw alvasw merged commit daf6e87 into bisq-network:main Mar 23, 2024
16 checks passed
@adrelanos
Copy link

A better approach is to use Tor's 'ControlPortWriteToFile' config option and parse the control port from that file.

Did you implement Tor's 'ControlPortWriteToFile' config option yet? I am not saying it's the right solution (#1924) but I cannot find it in the source code.

@adrelanos adrelanos mentioned this pull request Mar 24, 2024
@adrelanos
Copy link

network/tor/tor/src/main/java/bisq/tor/process/NativeTorProcess.java still contains

                   Set.of("[notice] Opened Control listener connection (ready) on "),

So parsing of ~/.local/share/Bisq2/tor/debug.log is still being done.

@djing-chan djing-chan added this to the 2.0.2 milestone Mar 31, 2024
@djing-chan djing-chan added the tor label Mar 31, 2024
@alvasw alvasw deleted the tor_control_port_file_parser 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.

3 participants