Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2012-05-22 12:23:40 +0000
committerGreg Wilkins2012-05-22 12:23:40 +0000
commit077b220cf896303407da43606bcb09e8ae7687b9 (patch)
treeb8186fda1c9d3f81187b2d3ee09ece1b25e2aad9 /jetty-http/src
parent473ebb447a62c9335bb180bec4a1e7b4c2a49407 (diff)
downloadorg.eclipse.jetty.project-077b220cf896303407da43606bcb09e8ae7687b9.tar.gz
org.eclipse.jetty.project-077b220cf896303407da43606bcb09e8ae7687b9.tar.xz
org.eclipse.jetty.project-077b220cf896303407da43606bcb09e8ae7687b9.zip
380212 Clear buffer if parsing fails due to full buffer
Diffstat (limited to 'jetty-http/src')
-rw-r--r--jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java
index 0b4053c15e..f9c2ba9099 100644
--- a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java
+++ b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java
@@ -1020,7 +1020,8 @@ public class HttpParser implements Parser
// Are we full?
if (_buffer.space() == 0)
{
- LOG.warn("Full {}",_buffer.toDetailString());
+ LOG.warn("HttpParser Full for {} ",_endp);
+ _buffer.clear();
throw new HttpException(HttpStatus.REQUEST_ENTITY_TOO_LARGE_413, "FULL "+(_buffer==_body?"body":"head"));
}

Back to the top