Repository navigation
Prepare the PeerSharp 5.4.1 release - #43
Merged
Merged
Conversation
…r failures A failed or timed-out MSE handshake used to fall through to a plaintext handshake on the same connection. MSE bytes had already been written, and a read timeout had already closed the stream, so that attempt could only throw and was logged as "Connect failed (unexpected)" with a stack trace. The connection now closes and the peer's history offers plaintext next time. When our own dial deadline aborts the handshake, it is reported as a timeout and no longer counts as the peer hanging up. Once the transport is open, including during TLS on SSL torrents, I/O failures are logged at Debug without a stack trace. Caller cancellation is logged as cancelled. Proxy setup and authentication failures still reach the error log. UDP tracker announces and scrapes that fail only by timing out are logged at Information without a stack trace, matching HttpTracker. Per-retry scrape logs drop from Warning to Debug. The final-failure code after each retry loop could never run, because the last attempt's exception skips the per-attempt catches, so it is removed. FileCheckScheduleTests now also waits for the stop's cancellation to reach the paused read before releasing it. The tests share one RecordingLoggerProvider. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The changelog's 5.4.1 section is dated today. The PeerSharp package notes now also say that failed encryption handshakes close cleanly and that unresponsive peers and UDP trackers are logged without error-level stack traces. No public API changes, so it is still binary compatible with 5.4.0. 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.
The last step before releasing 5.4.1: one round of connection and tracker fixes, then the release notes.
Fixes
Connect failed (unexpected)with a stack trace. The connection now closes and the peer's history offers plaintext next time. When our own dial deadline aborts the handshake, it is reported as a timeout and no longer counts as the peer hanging up.HttpTrackeralready did. Per-retry scrape logs drop from Warning to Debug. The final-failure code after each retry loop could never run, so it is removed.FileCheckScheduleTestsnow waits for the stop's cancellation to reach the paused read, which fixes a race. The new logging tests share oneRecordingLoggerProvider.Release notes
The version, the README, the WebTorrent notes and the validation baselines were already set for 5.4.1 in #42 and stay as they are.
Validation
dotnet format --verify-no-changesis clean, and the Release build with warnings as errors succeeds.dotnet packwith package validation succeeds for bothPeerSharpandPeerSharp.WebTorrent5.4.1.After merging
mainwith dry run on. The last dry run (on the hardening branch) failed only because the Windows Transmission interop leech stalled at 99.4%. That test has also failed on and off in scheduled runs.v5.4.1tag and release and pushes both packages to NuGet.🤖 Generated with Claude Code