Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Becker2012-08-27 10:02:50 +0000
committerThomas Becker2012-08-27 10:02:50 +0000
commit77c03ad45fcfbe88deccb28151ce84cb1a80698f (patch)
tree2729e51639c893dc2658ecbd57eadd00598164f0
parent9173751438bf29033a8de0336d918380751a39f8 (diff)
downloadorg.eclipse.jetty.project-77c03ad45fcfbe88deccb28151ce84cb1a80698f.tar.gz
org.eclipse.jetty.project-77c03ad45fcfbe88deccb28151ce84cb1a80698f.tar.xz
org.eclipse.jetty.project-77c03ad45fcfbe88deccb28151ce84cb1a80698f.zip
388079: AbstractHttpConnection. Flush the buffer before shutting output down on error condition
-rw-r--r--jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
index 3d2d13f94e..4882154ac4 100644
--- a/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
+++ b/jetty-server/src/main/java/org/eclipse/jetty/server/AbstractHttpConnection.java
@@ -549,8 +549,9 @@ public abstract class AbstractHttpConnection extends AbstractConnection
{
if (error)
{
- _endp.shutdownOutput();
_generator.setPersistent(false);
+ _generator.flushBuffer();
+ _endp.shutdownOutput();
if (!_generator.isComplete())
_response.complete();
}

Back to the top