Repository navigation
fix: activate receiver input multiplex for proto 28/29 daemon pulls - #2749
Merged
Merged
Conversation
oferchen
force-pushed
the
fix/protocol-28-29-daemon
branch
from
March 16, 2026 23:07
2e30f35 to
00ae064
Compare
The receiver input multiplex activation was gated on uses_binary_negotiation() (protocol >= 30) regardless of mode. This caused daemon pull transfers with protocol 28/29 to fail because the client receiver could not demultiplex the server sender multiplexed output frames. Upstream rsync activates input multiplex differently by mode: - Client receiver (pull): protocol >= 23 (main.c:1342-1343) - Server receiver (push): protocol >= 30 (main.c:1167-1168) Extract should_activate_input_multiplex() on ReceiverContext mirroring the generator existing method, and use it in setup_transfer().
oferchen
force-pushed
the
fix/protocol-28-29-daemon
branch
from
March 17, 2026 01:21
00ae064 to
740163b
Compare
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…2749) The receiver input multiplex activation was gated on uses_binary_negotiation() (protocol >= 30) regardless of mode. This caused daemon pull transfers with protocol 28/29 to fail because the client receiver could not demultiplex the server sender multiplexed output frames. Upstream rsync activates input multiplex differently by mode: - Client receiver (pull): protocol >= 23 (main.c:1342-1343) - Server receiver (push): protocol >= 30 (main.c:1167-1168) Extract should_activate_input_multiplex() on ReceiverContext mirroring the generator existing method, and use it in setup_transfer().
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…2749) The receiver input multiplex activation was gated on uses_binary_negotiation() (protocol >= 30) regardless of mode. This caused daemon pull transfers with protocol 28/29 to fail because the client receiver could not demultiplex the server sender multiplexed output frames. Upstream rsync activates input multiplex differently by mode: - Client receiver (pull): protocol >= 23 (main.c:1342-1343) - Server receiver (push): protocol >= 30 (main.c:1167-1168) Extract should_activate_input_multiplex() on ReceiverContext mirroring the generator existing method, and use it in setup_transfer().
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.
Summary
Root Cause
The receiver setup_transfer() unconditionally checked uses_binary_negotiation() (>= 30) to decide whether to activate input multiplex. In server mode this is correct (upstream main.c:1167-1168 only activates for >= 30), but in client mode (daemon pull) upstream activates at protocol >= 23 (main.c:1342-1343). Without input multiplex, the client receiver could not parse the server sender multiplexed output frames, causing the transfer to fail with protocol decoding errors.
Test plan