浏览代码

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 年之前
父节点
当前提交
ff9241122f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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