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
             Fix For: 3.1.1



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