Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Shellstream is disposed when receiving huge response

未關閉
#1,762 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 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 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

sshnet/SSH.NET 的其他 Issue

查看 sshnet/SSH.NET 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。