RFC: netbase: Remove manual_connection and return the failure reason to callers #36970

pull fjahr wants to merge 3 commits into bitcoin:master from fjahr:2026-11-i2p-proxy-log-nomanual changing 8 files +90 −63
  1. fjahr commented at 7:47 PM on November 24, 2026: contributor

    Based on #36969, only the last commit is new. Draft to see if this direction is wanted. This also came out of discussions in #36759:

    The manual_connection flag of ConnectDirectly() only picks the log level of a failed connect(). Callers that are not manual peers, like Tor control, pass true just to get the failure logged, and the caller that knows how much a failure matters never sees the reason.

    This removes the flag. ConnectDirectly() returns the failure reason and each caller decides how to log it. The log output stays the same, except that manual peers and Tor control now log every failure reason at info level, including timeouts, which were debug only.

  2. i2p: Warn only once when the SAM proxy is unreachable or listening fails 5146f7f60f
  3. netbase: Warn only once when a proxy is unreachable 058e26fddd
  4. DrahtBot commented at 7:48 PM on November 24, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--006a51241073e994b41acfe9ec718e94-->

    External sites

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--174a7506f384e20aa4161008e828411d-->

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #36904 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36904.svg"></sub> (log: Remove trailing and embedded newlines from log messages by maflcko)
    • #36880 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36880.svg"></sub> (init: Fix surprising behaviors of negated options by fjahr)
    • #36759 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36759.svg"></sub> (torcontrol: Improve connection logging by ViniciusCestarii)
    • #36257 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/36257.svg"></sub> (qa: assert_equal -> assert_true/assert_false by hodlinator)
    • #35027 <sub><img src="https://drahtbot.space/ack_count/bitcoin/bitcoin/35027.svg"></sub> (net: add -outboundbind option for outgoing source address by 8144225309)

    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.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->

  5. DrahtBot added the label CI failed on Nov 24, 2026
  6. DrahtBot commented at 8:58 PM on November 24, 2026: contributor

    <!--85328a0da195eb286784d51f73fa0af9-->

    🚧 At least one of the CI tasks failed. <sub>Task iwyu: https://github.com/bitcoin/bitcoin/actions/runs/45474031569/job/138729326085</sub> <sub>LLM reason (✨ experimental): CI failed because IWYU added a missing #include <util/expected.h> to src/net.cpp, leaving an uncommitted diff that the check rejects.</sub>

    <details><summary>Hints</summary>

    Try to run the tests locally, according to the documentation. However, a CI failure may still happen due to a number of reasons, for example:

    • Possibly due to a silent merge conflict (the changes in this pull request being incompatible with the current code in the target branch). If so, make sure to rebase on the latest commit of the target branch.

    • A sanitizer issue, which can only be found by compiling with the sanitizer and running the affected test.

    • An intermittent issue.

    Leave a comment here, if you need help tracking down a confusing failure.

    </details>

  7. netbase: Return the reason for a failed connection instead of logging it a2e24607f8
  8. fjahr force-pushed on Nov 25, 2026
  9. DrahtBot removed the label CI failed on Nov 25, 2026

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-11-29 04:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me