SFTP downloads hang in 2025.1.0+ but work in 2025.0.0
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- csharp
- Bereich
- networking
Rechercherichtung
Diff the changes between the 2025.0.0 and 2025.1.0 tags to find what changed in the SFTP read path. Start with SftpFileStream (the OpenAsync/CopyToAsync path) and SftpClient.DownloadFileAsync under src/, focusing on async read loops and channel/window handling. Reproduce against a local SFTP server or the project's integration tests, and done means both download paths complete without hanging on the current version.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
An SFTP download that completes successfully with SSH.NET 2025.0.0 hangs after upgrading to 2025.1.0 or 2026.0.0.
Versions tested
- Works: SSH.NET 2025.0.0
- Hangs: SSH.NET 2025.1.0
- Hangs: SSH.NET 2026.0.0
Environment
- .NET version: [insert]
- OS: [insert]
- SFTP server product and version: [insert]
Reproduction
The original implementation opens the remote file as an SftpFileStream and copies it to a local destination stream:
await using var fileStream = File.Create("file path");
await using var sftpFileStream = await client.OpenAsync(
"file name",
FileMode.Open,
FileAccess.Read,
CancellationToken.None);
await sftpFileStream.CopyToAsync(fileStream);
This completes with SSH.NET 2025.0.0. With 2025.1.0 and 2026.0.0, the operation does not complete.
I also tested the dedicated download API:
await using var fileStream = File.Create("file path");
await client.DownloadFileAsync(
"file name",
fileStream,
CancellationToken.None);
It hangs as well in 2025.1.0 and 2026.0.0.
Expected behavior
The file download should complete, as it does with SSH.NET 2025.0.0.
Actual behavior
The download hangs indefinitely with 2025.1.0 and 2026.0.0, without completing or throwing an exception.
- Vorherrschende Sprache
- C#
- Sterne
- 4.4k
- Forks
- 990
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus sshnet/SSH.NET
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 45/100
-
ShellStream.Expect over-discards on undecodable bytes, driving ArrayBuffer.ActiveLength negativeOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
-
Using SshClient on Linux under Wine throws System.Security.Cryptography.CryptographicExceptionOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
PCL-Community/PCL-CE#3658 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Deploy & Patch-issues opprettes ikke: create-pnd-issues.yml har feilet hver uke siden 2025-09-08Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Altinn/altinn-auth#4359 ·
Maintainer antworten meist innerhalb von 1 Tag
-
アプリ: チャット 優先: 中 提案
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
yksr-melt/Meltype#243 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug core
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
type/automation type/tech-debt
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag