mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 16:02:38 +00:00
WIP: RFC: netbase: Remove manual_connection and return the failure reason to callers #36970
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36970
Loading…
Reference in a new issue
No description provided.
Delete branch "2026-11-i2p-proxy-log-nomanual"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_connectionflag ofConnectDirectly()only picks the log level of a failedconnect(). Callers that are not manual peers, like Tor control, passtruejust 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.The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.
Conflicts
Reviewers, this pull request conflicts with the following ones:
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.
🚧 At least one of the CI tasks failed.
Task
iwyu: https://github.com/bitcoin/bitcoin/actions/runs/45474031569/job/138729326085LLM reason (✨ experimental): CI failed because IWYU added a missing
#include <util/expected.h>tosrc/net.cpp, leaving an uncommitted diff that the check rejects.Hints
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.
🟠 Minor · Proxy warnings omit the connection failure reason
The prerequisite logging change makes refused proxy connections and missing Unix socket paths produce endpoint-only warnings; their causes require
-debug=net, not-debug=proxyor-debug=i2p.Location:
src/netbase.cpp:668(head).🔵 Suggestion · One proxy's failure suppresses connection warnings for other endpoints
With separately configured proxies, the first endpoint's failure consumes the warning for every endpoint, so a later refusal from another proxy receives only the categorized debug diagnostic.
Location:
src/netbase.cpp:799(head).🔵 Suggestion · The I2P test does not reliably check repeated
Couldn't listenwarningsThe second assertion requires a repeated
Hellofailure but not a repeatedListenfailure, so it catches an unconditionalListenwarning only if a background retry happens during theaddnodeinterval.Location:
test/functional/p2p_i2p_ports.py:41(head).🔵 Suggestion · The returned
getsockopt()failure reason omits the OS errorOn the rare
getsockopt(SO_ERROR)failure path, the new returned reason omits the OS error even though the existing warn-then-debug diagnostic retains it.Location:
src/netbase.cpp:614(head).Review coverage was incomplete.
Reviewed:
a2e24607f8bb· Review report · Previous reportspermalink
🐙 This pull request conflicts with the target branch and needs rebase.