Thanks Oleg,

Yes, I go to trace that out. Seems there is a return statement in the while
loop which makes it to skip that length check.


                if (this.linebuffer.isEmpty()) {
                    // the entire line is preset in the read buffer
                    return lineFromReadBuffer(charbuffer, i);
                }

I will open an issue for this.

Regards
bekz


olegk wrote:
> 
> On Wed, 2012-03-07 at 09:46 -0800, becks007 wrote:
>> Thanks Oleg,
>> 
>> I think java doc is accurate :) I am not sure if there is anything wrong
>> with my program. But i was using 4.2.1 and observed that MAX_LINE_LENGTH
>> is
>> not applied to single lines and headers having larger values than
>> configured
>> max line length was getting populated. 
>> 
>> In the earlier code snippet i had pasted i see that max line length is
>> only
>> checked for folded headers if so that needs  a patch; i will try to open
>> up
>> a defect and give the patch if so.
>> 
> 
> Length of individual lines is checked in the
> AbstractSessionInputBuffer#readLine, but feel free to double-check and
> raise a defect in JIRA if in some cases the max length is not properly
> enforced. 
> 
> http://hc.apache.org/httpcomponents-core-ga/httpcore/xref/org/apache/http/impl/io/AbstractSessionInputBuffer.html#238
> 
> Oleg
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 
-- 
View this message in context: 
http://old.nabble.com/CoreConnectionPNames.MAX_LINE_LENGTH-processing-tp33457329p33460709.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to