bitcoin icon indicating copy to clipboard operation
bitcoin copied to clipboard

net: log connections failures via SOCKS5 with less severity

Open vasild opened this issue 1 year ago • 2 comments

It is expected to have some Bitcoin nodes unreachable some of the time. A failure to connect to an IPv4 or IPv6 node is already properly logged under category=net/severity=debug. Do the same when a connection fails when using a SOCKS5 proxy. This could be either to an .onion address or to an IPv4 or IPv6 address (via a Tor exit node).

Related: https://github.com/bitcoin/bitcoin/issues/29759

vasild avatar May 08 '24 14:05 vasild

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK mzumsande, tdb3, achow101
Concept ACK jonatack, BrandonOdiwuor
Stale ACK laanwj, kristapsk

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #29641 (scripted-diff: Use LogInfo/LogDebug over LogPrintf/LogPrint by maflcko)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

DrahtBot avatar May 08 '24 14:05 DrahtBot

7524aaf58f...f3cfbd65f5: drop the changes to LogConnectFailure(). They were somewhat related, but not directly to the SOCKS5 stuff.

perhaps look if other ones there could be done here

The changes from #25203 look sound, but I want to keep this PR small, just to address the noisy and inconsistent logging due to connection failures via the SOCKS5 proxy.

vasild avatar May 31 '24 05:05 vasild

ACK f3cfbd65f54b5b6423d786fb8850cece05af603e

achow101 avatar Aug 05 '24 21:08 achow101