Browse Source

Catch IOException which includes SocketException in DownloadZipServlet

tags/v1.3.1
James Moger 10 years ago
parent
commit
52fc94511e
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      src/main/java/com/gitblit/DownloadZipServlet.java

+ 1
- 2
src/main/java/com/gitblit/DownloadZipServlet.java View File

@@ -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…
Cancel
Save