Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

SFTP downloads hang in 2025.1.0+ but work in 2025.0.0

オープン
#1,843 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sshnet/SSH.NET のほかの issue

sshnet/SSH.NET の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。