View | Details | Raw Unified | Return to bug 44494
Collapse All | Expand All

(-)container/catalina/src/share/org/apache/catalina/connector/InputBuffer.java (-6 / +5 lines)
Lines 319-326 Link Here
319
            cb.setOffset(0);
319
            cb.setOffset(0);
320
            cb.setEnd(0);
320
            cb.setEnd(0);
321
        }
321
        }
322
        int limit = bb.getLength()+cb.getStart();
323
        if ( cb.getLimit() < limit )
324
            cb.setLimit(limit);
322
        state = CHAR_STATE;
325
        state = CHAR_STATE;
323
        conv.convert(bb, cb, len);
326
        conv.convert(bb, cb, bb.getLength());
324
        bb.setOffset(bb.getEnd());
327
        bb.setOffset(bb.getEnd());
325
328
326
        return cb.getLength();
329
        return cb.getLength();
Lines 403-413 Link Here
403
                cb.setOffset(0);
406
                cb.setOffset(0);
404
            }
407
            }
405
        }
408
        }
406
        int offset = readAheadLimit;
409
        cb.setLimit(cb.getStart() + readAheadLimit + size);
407
        if (offset < size) {
408
            offset = size;
409
        }
410
        cb.setLimit(cb.getStart() + offset);
411
        markPos = cb.getStart();
410
        markPos = cb.getStart();
412
    }
411
    }
413
412

Return to bug 44494