ソースを参照

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);

読み込み中…
キャンセル
保存