Repository navigation
Skip leeching from Transmission on Windows in the release gate - #44
Merged
Merged
Conversation
Transmission 4.1.x on Windows discards its unsent output when send() fails: tr-buffer.h compares the int result against 0U, so -1 counts as success and the queue is drained while its RC4 keystream has already moved past those bytes. Diagnosed in d88363f and ffca401 against a patched build and MonoTorrent; CI's Transmission 4.1.4 still has it. Each break drops our connection, and in about half of runs the 64 MiB download stalls before its timeout. Since the interop job became a release gate, that has failed three release runs in a row on a defect that is not ours. The test now skips on Windows unless PEERSHARP_TRANSMISSION_LEECH_ON_WINDOWS=1. Linux CI still runs it, and seeding to Transmission still runs on Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Unblocks the 5.4.1 release. The Windows interop job has failed three release runs in a row on
Leeching_FromTransmission_ReceivesTheWholeFile, and the cause is a Transmission defect, not ours.Why
Transmission 4.1.x on Windows discards its unsent output when
send()fails.tr-buffer.hcompares theintresult against0U, so -1 counts as success, and the whole queue is drained while its RC4 keystream has already moved past those bytes. Everything after that decrypts to garbage on our side. This was diagnosed in d88363f and ffca401, against a patched Transmission build and against MonoTorrent. CI installs Transmission 4.1.4, which still has it.A local run today showed the same thing: the stream desynchronised about 85 ms into each burst after Transmission unchoked us (
Message size 555525743 exceeds limit,Invalid negative message length), and there were no hash failures on our side. In CI, about half of runs stall before the 10-minute timeout. That has been true of the scheduled interop runs since mid-September, on unchanged commits.Change
Leeching_FromTransmission_ReceivesTheWholeFileskips on Windows unlessPEERSHARP_TRANSMISSION_LEECH_ON_WINDOWS=1. The skip reason names the defect and the commits, so it shows up in the results file.Validation
dotnet format --verify-no-changesis clean, and the Release build with warnings as errors succeeds.After merging
Run the Release workflow on
mainagain. 5.4.1 has not been published: the earlier run stopped before the publish job.🤖 Generated with Claude Code