SFTP downloads hang in 2025.1.0+ but work in 2025.0.0
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
- 領域
- networking
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C#
- スター
- 4.4k
- フォーク
- 990
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
sshnet/SSH.NET のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
ShellStream.Expect over-discards on undecodable bytes, driving ArrayBuffer.ActiveLength negativeオープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
stryker-mutator/stryker-net#3892 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MobiFlight/MobiFlight-Connector#3419 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
Kryptos-FR/MarkView.Avalonia#105 ·
メンテナーはふだん 1 日以内に返信
-
[辞書]オープン提案 辞書
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
microsoft/fluentui-blazor#5410 ·
メンテナーはふだん 1 日以内に返信