瀏覽代碼

Catch IOException which includes SocketException in DownloadZipServlet

tags/v1.3.1
James Moger 11 年之前
父節點
當前提交
52fc94511e
共有 1 個檔案被更改,包括 1 行新增2 行删除
  1. 1
    2
      src/main/java/com/gitblit/DownloadZipServlet.java

+ 1
- 2
src/main/java/com/gitblit/DownloadZipServlet.java 查看文件

@@ -16,7 +16,6 @@
package com.gitblit;
import java.io.IOException;
import java.net.SocketException;
import java.text.MessageFormat;
import java.text.ParseException;
import java.util.Date;
@@ -177,7 +176,7 @@ public class DownloadZipServlet extends HttpServlet {
}
response.flushBuffer();
} catch (SocketException t) {
} catch (IOException t) {
String message = t.getMessage() == null ? "" : t.getMessage().toLowerCase();
if (message.contains("reset") || message.contains("broken pipe")) {
logger.error("Client aborted zip download: " + message);

Loading…
取消
儲存