Author: remy.maucherat(a)jboss.com
Date: 2008-03-31 12:23:06 -0400 (Mon, 31 Mar 2008)
New Revision: 573
Modified:
trunk/java/org/apache/catalina/connector/InputBuffer.java
Log:
- Remove the "grow for a minimum amount" thing, which may not be that useful.
Modified: trunk/java/org/apache/catalina/connector/InputBuffer.java
===================================================================
--- trunk/java/org/apache/catalina/connector/InputBuffer.java 2008-03-31 15:17:04 UTC (rev
572)
+++ trunk/java/org/apache/catalina/connector/InputBuffer.java 2008-03-31 16:23:06 UTC (rev
573)
@@ -501,13 +501,9 @@
cb.setOffset(0);
}
}
- int offset = readAheadLimit;
- if (offset < size) {
- offset = size;
+ if (cb.getStart() + readAheadLimit > cb.getLimit()) {
+ cb.setLimit(cb.getStart() + readAheadLimit);
}
- if (cb.getStart() + offset > cb.getLimit()) {
- cb.setLimit(cb.getStart() + offset);
- }
markPos = cb.getStart();
}
Show replies by date