Repository navigation
Conversation
open_socket_out() prints one "failed to connect to %s (%s)" line per failed address, naming the host as given and the numeric address, from the process that dialled: the lone Receiver for a pull or a listing, the sender for a push (socket.c:464-475, clientserver.c:164-165). An unresolvable host is "getaddrinfo: HOST PORT: <gai_strerror>" (socket.c:402-406), and a --contimeout expiry exits RERR_CONTIMEOUT before reporting any address. oc printed one line of its own for the last address only, as [client].
This was referenced Nov 3, 2026
Owner
Author
oferchen
added a commit
that referenced
this pull request
Nov 4, 2026
oferchen
added a commit
that referenced
this pull request
Nov 4, 2026
oferchen
added a commit
that referenced
this pull request
Nov 10, 2026
oferchen
added a commit
that referenced
this pull request
Nov 10, 2026
oferchen
added a commit
that referenced
this pull request
Nov 10, 2026
oferchen
added a commit
that referenced
this pull request
Nov 10, 2026
oferchen
added a commit
that referenced
this pull request
Nov 10, 2026
oferchen
added a commit
that referenced
this pull request
Nov 11, 2026
…edule (#8295) * fix: end the request phase with NDX_DONE right after the last request Without INC_RECURSE upstream's generator writes the phase-0 NDX_DONE right after its generate loop (generator.c:2831-2833), before any reply is read. The receiver now does the same instead of leaving it to the finalize exchange, reads the sender's answer before the redo pass, and then drains the hard-link follower echoes that now follow it. * docs: link the request-phase NDX_DONE entry to #8295 * fix: end the redo and delay phases and send NDX_DEL_STATS on upstream's schedule * docs: changelog entry for the redo and delay phase ends * test: pin the phase-end writes in the goodbye and transcript masker tests * test: the redo phase ends right after its request * fix: report a failed daemon connection in upstream's words and role open_socket_out() prints one "failed to connect to %s (%s)" line per failed address, naming the host as given and the numeric address, from the process that dialled: the lone Receiver for a pull or a listing, the sender for a push (socket.c:464-475, clientserver.c:164-165). An unresolvable host is "getaddrinfo: HOST PORT: <gai_strerror>" (socket.c:402-406), and a --contimeout expiry exits RERR_CONTIMEOUT before reporting any address. oc printed one line of its own for the last address only, as [client]. * docs: link the refused-connection entry to #8303 * fix: itemize the redo request against a fresh destination stat, like upstream's recv_generator * fix(test-support): accept the pull goodbye only in its two upstream layouts * test: gate the refused-connection exit-code module to Linux
oferchen
added a commit
that referenced
this pull request
Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rebased onto master after #8287 merged.
Summary
Upstream
open_socket_out()(socket.c:464-475) reports every failed address on its own line,failed to connect to <host as given> (<numeric address>): <errno>, from the process that dialled: the loneReceiverfor a pull or a module listing, thesenderfor a push. clientserver.c:164-165 then exits RERR_SOCKETIO. An unresolvable host printsgetaddrinfo: HOST PORT: <gai_strerror>with no role (socket.c:403-406), and a--contimeoutexpiry exits RERR_CONTIMEOUT before any address is reported.oc printed one line of its own text (
failed to connect to 127.0.0.1:PORT: ...) for the last address only, tagged[client], and a module listing printed no cause line at all.try_candidatesreturns every failed attempt in order;map_connect_failureturns them into upstream's lines.Senderfor a push,PreForkReceiverfor a pull and for listing.ClientErrorcan carry several program lines; the CLI prints them for transfers and module listings.getaddrinfoand contimeout arms match upstream's text.Evidence (rsync 3.5.1 release tarball, same host)
rsync://localhost:<closed>::1, then127.0.0.1)[Receiver]+error in socket IO (code 10) [Receiver]rsync://127.0.0.1:<closed>[sender]+ trailer[sender]rsync://127.0.0.1:<closed>/[Receiver]+ trailerrsync://nonexistent.invalid/...getaddrinfo: nonexistent.invalid 873: Name or service not known+ trailer, rc 10--contimeout=1to a black-hole addresstimeout waiting for daemon connection (code 35) [Receiver]Tests
tests/exit_codes.rs::exit_code_10_socket_io::a_refused_daemon_connection_reports_upstreams_lines(Linux): pull, push and listing against a released loopback port, with exact lines and roles. It replaces three#[ignore]d tests that only asserted "5 or 10"; 3.5.1 exits 10 here, never 5.try_candidatesreturns all failures.check_rustfmt_all.py, workspace clippy-D warnings(twoallow(clippy::too_many_arguments)where the role makes 9 arguments, following existing usage in the crate),dead_code_census.py, windows-gnu check of core and cli; core + cli nextest 6880 passed; targeted run including bin exit_codes 309 passed.Known limits
fe80::1%eth0) is not printed; upstream'sgetnameinfo(NI_NUMERICHOST)includes it.