ChunkEncoder write method returns the wrong value
-------------------------------------------------

                 Key: HTTPCORE-218
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-218
             Project: HttpComponents HttpCore
          Issue Type: Bug
    Affects Versions: 4.1-alpha1, 4.0.1
            Reporter: Richie Jefts


If the data to write is greater than the size of the buffer used by the 
ChunkEncoder, then the write method returns the size of the data requested to 
write instead of the size of the data actually written.

I first noticed the problem when using FileChannel.transferTo and ChunkEncoder. 
The transferTo fails because it depends on a correct return value from write.


-- 
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