diff options
author | James Moger <james.moger@gitblit.com> | 2013-07-23 17:39:33 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-07-23 17:39:33 -0400 |
commit | 52fc94511e74c286ed1965cb081955e634b2dad1 (patch) | |
tree | 81bf6eb139bbeb8dbb65e2e8fda1458f6fa7a170 /src/main | |
parent | 271a68b3b0ce6707130c77b5b009b3457d6b9d3b (diff) | |
download | gitblit-52fc94511e74c286ed1965cb081955e634b2dad1.tar.gz gitblit-52fc94511e74c286ed1965cb081955e634b2dad1.zip |
Catch IOException which includes SocketException in DownloadZipServlet
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/gitblit/DownloadZipServlet.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/DownloadZipServlet.java b/src/main/java/com/gitblit/DownloadZipServlet.java index 8a4a710d..7cdc54b8 100644 --- a/src/main/java/com/gitblit/DownloadZipServlet.java +++ b/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);
|