"Session operation has timed out" on Azure Function
まだ誰も着手していません。
- 主要言語
- C#
- スター
- 4.4k
- フォーク
- 993
- 平均マージ
- 9日 21時間
- マージ済み PR(30日)
- 1
説明
I'm try to connect to a SFTP server from an Azure Function and I keep getting a "Session operation has timed out". I'm on version "2016.0.0". I've build a similar function using WinSCP and that works fine and the same applies to running the CLI command SFTP from the Kudu prompt.
I'm using the following code:
public static void Run(TimerInfo myTimer, TraceWriter log)
{
string sftp_host = ;
string sftp_user = ;
string sftp_privateKey = @
var stream = new FileStream(sftp_privateKey, FileMode.Open, FileAccess.Read);
var privateKeyFile = new PrivateKeyFile(stream);
AuthenticationMethod authenticationMethod = new PrivateKeyAuthenticationMethod(, privateKeyFile);
ConnectionInfo ConnNfo = new ConnectionInfo(sftp_host, sftp_user, authenticationMethod);
SftpClient client = new SftpClient(ConnNfo);
try
{
client.Connect();
}
catch (Exception ex)
{
log.Info("Error Message: " + ex.Message);
client.Disconnect();
}
}
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
issue に示されている SftpClient の接続セットアップ、特に client.Connect() から始め、Azure Function 環境でタイムアウトを再現してください。WinSCP と Kudu の動作している SFTP ケースと挙動を比較してください。タイムアウトの再現可能な原因または実行可能な修正を特定できれば完了です。issue には更新対象のリポジトリファイルやテストは記載されていません。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- networking
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100