[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639160#action_12639160
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-801:
----------------------------------------------

Odi,

I think that content transfer encoding (chunking in this instance) and an 
efficient utilization of the socket output buffer are somewhat different 
concerns. There are ways to generate lots of small packets with Content-Length 
delimited content, too. Anyways, any optimization on the TCP packet level will 
be very welcome.

Cheers

Oleg

> Having problems with ChunkedOutputStream 
> -----------------------------------------
>
>                 Key: HTTPCLIENT-801
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-801
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.1 Final
>            Reporter: ozgur alkaner
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Sorry if i am wrong about this. But i am confused by the way 
> ChunkedOutputStream is implemented.
> This is what is written at the begining of the ChunkedOutputStream.java :
> "Chunks are guaranteed to be at least as large as the buffer size (except for 
> the last chunk)."
> I see that the code is implemented as mentioned above, However does that 
> comply with the http chunking in http1.1?
> Shouldn't that be 
> "Chunks are guaranteed to be at  most as large as the buffer size (except for 
> the last chunk)."
> The default size for the chunk cache seems to be 2048 , however when i set 
> the post request body to be larger than this value say 5000, 
> ChunkedOutputstream creates a single chunk of size 5000.  
> I will be pleased if you can comment on this?
> Ozgur

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to