Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
4.4.11
-
None
Description
The FileContentDecoder.transfer function has the 'count' parameter indicating the maximum number of bytes to transfer.
Implementations (LengthDelimitedDecoder and IdentityDecoder) don't respect this parameter when getting the data from the internal buffer: in practice the whole buffer content is transferred, thus the actual number of bytes transferred may exceed the maximum requested by caller.
Since the way data are read from the buffer can be limited, it is possible to respect the requested 'count'.