1
--- trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java 2012/07/02 12:47:54 1356207
2
+++ trunk/java/org/apache/coyote/http11/InternalNioInputBuffer.java 2012/07/02 13:01:28 1356208
6
status = parseHeader();
7
- } while ( status == HeaderParseStatus.HAVE_MORE_HEADERS );
8
- if (status == HeaderParseStatus.DONE) {
9
- parsingHeader = false;
12
// (1) Headers plus request line size does not exceed its limit
13
// (2) There are enough bytes to avoid expanding the buffer when
15
// limitation to enforce the meaning of headerBufferSize
16
// From the way how buf is allocated and how blank lines are being
17
// read, it should be enough to check (1) only.
18
- if (end - skipBlankLinesBytes > headerBufferSize
19
- || buf.length - end < socketReadBufferSize) {
20
+ if (pos - skipBlankLinesBytes > headerBufferSize
21
+ || buf.length - pos < socketReadBufferSize) {
22
throw new IllegalArgumentException(
23
sm.getString("iib.requestheadertoolarge.error"));
25
+ } while ( status == HeaderParseStatus.HAVE_MORE_HEADERS );
26
+ if (status == HeaderParseStatus.DONE) {
27
+ parsingHeader = false;