Unverified 提交 7775ecbd authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #1789 from grandinj/1740_log_oom_to_console

#1740 log OOM to console
...@@ -161,6 +161,11 @@ public class TcpServerThread implements Runnable { ...@@ -161,6 +161,11 @@ public class TcpServerThread implements Runnable {
transfer.setSession(session); transfer.setSession(session);
server.addConnection(threadId, originalURL, ci.getUserName()); server.addConnection(threadId, originalURL, ci.getUserName());
trace("Connected"); trace("Connected");
} catch (OutOfMemoryError e) {
// catch this separately otherwise such errors will never hit the console
server.traceError(e);
sendError(e);
stop = true;
} catch (Throwable e) { } catch (Throwable e) {
sendError(e); sendError(e);
stop = true; stop = true;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论