sshnet / sshnet/SSH.NET

Connection Open while processing a file for 45minutes then the session is not open

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

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

主要言語
C#
スター
4.4k
フォーク
993
平均マージ
9日 21時間
マージ済み PR(30日)
1

説明

Hello, I connect via SFTP Renci and begin processing a file. It takes 45minutes to 1 hour and then finishes. I then try to move the file using sftpclient.Moveto but i get the error that "the session is not open". This was not an issue for smaller files that processed within a few minutes.

It seems to be timing out the connection when opened for too long. How can I extend it?
I've tried the below but it's still not working

                    client.KeepAliveInterval = TimeSpan.FromSeconds(30);
                    client.ConnectionInfo.Timeout = TimeSpan.FromMinutes(150);
                    client.OperationTimeout = TimeSpan.FromMinutes(150);
                    client.Connect();

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

レポートに示されている SftpClient.MoveTo と KeepAliveInterval、ConnectionInfo.Timeout、OperationTimeout の設定を中心に、まず SFTP 接続のライフサイクルを確認してください。45~60 分間のファイル処理のケースを再現し、その後もセッションが開いたままかどうかを判断してください。確認済みの修正を特定するか、不足している設定または制限を文書化できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp
領域
networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

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

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