Rethrow EOFException without Connection reset by peer message
@@ -306,12 +306,17 @@ public abstract class BaseController
}
catch (EOFException e)
{
- if (e.getCause().getMessage().equals("Connection reset by peer")) {
+ if (e.getCause().getMessage().equals("Connection reset by peer"))
+ {
logger.debug("Socket has been closed. Possibly, user cancelled download.");
// Set response status 202 ACCEPTED just for logs
response.setStatus(202);
break;
}
+ else
+ {
+ throw e;
+ }
}
totalBytes += readLength;
