JBossWeb SVN: r839 - trunk/java/org/apache/coyote/http11.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2008-11-01 20:46:18 -0400 (Sat, 01 Nov 2008)
New Revision: 839
Modified:
trunk/java/org/apache/coyote/http11/Http11Processor.java
trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java
trunk/java/org/apache/coyote/http11/InternalInputBuffer.java
Log:
- Port patch.
- IOE was not the best exception type here.
Modified: trunk/java/org/apache/coyote/http11/Http11Processor.java
===================================================================
--- trunk/java/org/apache/coyote/http11/Http11Processor.java 2008-10-31 23:29:06 UTC (rev 838)
+++ trunk/java/org/apache/coyote/http11/Http11Processor.java 2008-11-02 00:46:18 UTC (rev 839)
@@ -881,9 +881,6 @@
rp.setStage(org.apache.coyote.Constants.STAGE_KEEPALIVE);
- // Don't reset the param - we'll see it as ended. Next request
- // will reset it
- // thrA.setParam(null);
// Next request
inputBuffer.nextRequest();
outputBuffer.nextRequest();
Modified: trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java
===================================================================
--- trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java 2008-10-31 23:29:06 UTC (rev 838)
+++ trunk/java/org/apache/coyote/http11/InternalAprInputBuffer.java 2008-11-02 00:46:18 UTC (rev 839)
@@ -793,7 +793,7 @@
if (parsingHeader) {
if (lastValid == buf.length) {
- throw new IOException
+ throw new IllegalArgumentException
(sm.getString("iib.requestheadertoolarge.error"));
}
Modified: trunk/java/org/apache/coyote/http11/InternalInputBuffer.java
===================================================================
--- trunk/java/org/apache/coyote/http11/InternalInputBuffer.java 2008-10-31 23:29:06 UTC (rev 838)
+++ trunk/java/org/apache/coyote/http11/InternalInputBuffer.java 2008-11-02 00:46:18 UTC (rev 839)
@@ -722,7 +722,7 @@
if (parsingHeader) {
if (lastValid == buf.length) {
- throw new IOException
+ throw new IllegalArgumentException
(sm.getString("iib.requestheadertoolarge.error"));
}
16 years, 10 months