Hsnmohd commented on PR #942: URL: https://github.com/apache/httpcomponents-client/pull/942#issuecomment-7094473754
Good catch, the reset was throwing away whatever followed the BFINAL block. Both decoders now grab `getRemaining()` before the reset, hand those bytes to the reset Inflater and keep going, so the next block (which starts a new DEFLATE stream per 7.2.1) is inflated in the same pass. Added tests that concatenate the RFC's BFINAL "Hello" (7.2.3.4) with its stored-block "Hello" (7.2.3.3) and expect "HelloHello": one single-frame, one that splits the message into two frames at every byte offset, plus the same message through the client-side decoder with context takeover. All three produced 5 bytes instead of 10 on the previous revision. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
