Przeglądaj źródła

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

https://winscp.net/tracker/1582

Source commit: f5c610de58e80e3eaea8d03e5655d9e46be80daf
Martin Prikryl 8 lat temu
rodzic
commit
5a7826a7b1
1 zmienionych plików z 2 dodań i 0 usunięć
  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