Shellstream is disposed when receiving huge response
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- csharp
- 領域
- networking
研究方向
從 ShellStream.Write 和回報的 SSHJob.WriteToStream 呼叫開始,接著追蹤長時間回應和後續命令如何影響串流的釋放。如果可能,重現 600 MB、持續 15 分鐘的回應情境,並檢查兩個命令的執行順序。完成的標準是確認由 SSH.NET 還是呼叫端釋放串流,並新增回歸測試或明確記錄的解決方案。
由索引模型根據 Issue 內容生成。
描述
Hi Guys,
Need your help to resolve my issue.
I send a ssh command to my router "show bgp nei xxx advertised-route", the response is huge and need more than 15 minutes to complete.
If I save the response, the size is 600Mb.
The problem occur when I send the second command, it was said that the shellstream is disposed while my ssh connection is still open.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Renci.SshNet.ShellStream'.
at Renci.SshNet.ShellStream.Write(String text)
at esihaur.SSH.SSHJob.WriteToStream(String command)
void WriteToStream(string command) { if (isConnected) { ca_Shell.Write(command); ca_Shell.Flush(); } }
public bool isConnected { get { return (ca_client != null && ca_client.IsConnected); } }
Please share guys if any solution
Thank You
Regards,
- 主要語言
- C#
- 星號
- 4.4k
- 分支
- 994
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
sshnet/SSH.NET 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 62/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
-
難度 3/5 1-2 天 新手友好度 67/100
相似的 Issue
-
0 - Backlog Bug
難度 2/5 1-3 小時 新手友好度 88/100
BrighterCommand/Brighter#4444 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
area:frontend bug FE P3
難度 2/5 1-3 小時 新手友好度 86/100
klasolsson81/jobbliggaren#1915 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
-
triage
難度 2/5 1-3 小時 新手友好度 76/100
microsoft/vscode-copilotstudio#431 ·
維護者通常 2 天內回覆