SSH.NET UploadFile and SshCommand stops running after an connectivity interruption
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 4.4k
- Forks
- 993
- Ø Merge
- 9 T. 21 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
With the SSH.NET Script that I am writing I want to Upload some specific large Files and start a time consuming PowerShell Script. To Upload the Files I am using UploadFile from SftpClient und to start my .ps1-File I use CreateCommand and Execute from SshCommand.
My Problem is, that the UploadFile as well as the execution of the ps1-Script will not continue to run my c# Script when the Connection is restored after an interruption.
Is there a way to resume/restore the ssh Connection so that the Upload and SshCommand continues to run, so that my other c# commands get executed
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Untersuchung von SftpClient.UploadFile und SshCommand.Execute und reproduziere anschließend eine Unterbrechung, während ein großer Upload oder ein PowerShell-Befehl aktiv ist. Bestimme das erwartete Verhalten für die wiederhergestellte Verbindung und ob der Vorgang fortgesetzt werden sollte; das Issue ist abgeschlossen, wenn dieses Verhalten für beide Operationen implementiert oder eindeutig dokumentiert und verifiziert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- networking
- Issue-Typ
- Bug
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100