diff --git a/impl/src/main/java/com/sun/faces/application/resource/ResourceHandlerImpl.java b/impl/src/main/java/com/sun/faces/application/resource/ResourceHandlerImpl.java index e7b90a5deb..a26ab77331 100644 --- a/impl/src/main/java/com/sun/faces/application/resource/ResourceHandlerImpl.java +++ b/impl/src/main/java/com/sun/faces/application/resource/ResourceHandlerImpl.java @@ -36,6 +36,7 @@ import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.channels.Channels; +import java.nio.channels.ClosedChannelException; import java.nio.channels.ReadableByteChannel; import java.nio.channels.WritableByteChannel; import java.util.ArrayList; @@ -341,6 +342,10 @@ public void handleResourceRequest(FacesContext context) throws IOException { } private static boolean isConnectionAbort(IOException ioe) { + if (ioe instanceof ClosedChannelException) { + return true; + } + String exceptionClassName = ioe.getClass().getCanonicalName(); if (exceptionClassName.equals("org.apache.catalina.connector.ClientAbortException") ||