aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2013-06-12 04:46:30 (EDT)
committerThomas Becker2013-06-12 04:54:57 (EDT)
commitf116d76290539f52047f102d5a8e8988519760ef (patch)
treee69950564f0155a519d19eac49412c4dad398483
parent955e7e8d74d6d9ce1cb996568f46706be9e939d3 (diff)
downloadorg.eclipse.jetty.project-f116d76290539f52047f102d5a8e8988519760ef.zip
org.eclipse.jetty.project-f116d76290539f52047f102d5a8e8988519760ef.tar.gz
org.eclipse.jetty.project-f116d76290539f52047f102d5a8e8988519760ef.tar.bz2
410337 throw EofException instead of EOFException in HttpOutput.write() if HttpOutpyt is closed
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java
index 191232f..79f442f 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/HttpOutput.java
@@ -23,7 +23,6 @@ import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
-
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletOutputStream;
import javax.servlet.ServletRequest;
@@ -31,6 +30,7 @@ import javax.servlet.ServletResponse;
import org.eclipse.jetty.http.HttpContent;
import org.eclipse.jetty.http.HttpHeader;
+import org.eclipse.jetty.io.EofException;
import org.eclipse.jetty.util.BlockingCallback;
import org.eclipse.jetty.util.BufferUtil;
import org.eclipse.jetty.util.Callback;
@@ -168,7 +168,7 @@ public class HttpOutput extends ServletOutputStream
public void write(byte[] b, int off, int len) throws IOException
{
if (isClosed())
- throw new EOFException("Closed");
+ throw new EofException("Closed");
_written+=len;
boolean complete=_channel.getResponse().isAllContentWritten(_written);