Browse Source

Bug 1582: WinSCP .NET assembly hangs when the XML log cannot be parsed

https://winscp.net/tracker/1582
(cherry picked from commit 5a7826a7b132884d7ad7d758d23c4d4a77604933)

Source commit: aa08cc521b73e3b88eb433fa09841a36c349d091
Martin Prikryl 8 years ago
parent
commit
ff9241122f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dotnet/internal/SessionLogReader.cs

+ 2 - 0
dotnet/internal/SessionLogReader.cs

@@ -131,6 +131,8 @@ namespace WinSCP
                         // (at least top-level <session/> tag is not closed),
                         // so we swallow the parsing errors here.
                         Session.Logger.WriteLine("Error parsing session log file, but it is not closed yet, will retry");
+                        Session.Logger.WriteException(e);
+                        Session.CheckForTimeout();
                         result = false;
                     }
                     else