hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCLIENT-801) Having problems with ChunkedOutputStream
Date Mon, 13 Oct 2008 14:32:44 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-801.
------------------------------------------

       Resolution: Invalid
    Fix Version/s:     (was: 3.1.1)

Ozgur,

The statement is absolutely correct. ChunkedOutputStream ensures that that individual chunks
are _at least_ 2048 bytes in length. It does not, however, split larger chunks (> 2048)
into smaller ones.

Please in the future post your questions to the mailing list. Jira is for reporting bugs.

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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message