pjfanning opened a new issue, #553:
URL: https://github.com/apache/pekko-http/issues/553

   See https://github.com/twitter/hpack/issues/43
   
   Works fine with ByteArrayInputStream but breaks if you use 
SequenceInputStream.
   
   It is unlikely that the twitter/hpack issue will be fixed.
   
   We could modify our fork of the HPack Decoder to avoid using `available()` 
method by
   * adding private methods `boolean isEndOfStream()` and `byte nextByte()`
       * one implementation is to read one byte ahead 
       * read into a byte array and keep track of the pos and remaining bytes 
and refresh the byte array when remaining is zero
   * find an InputStream implementation that we can use to wrap the provided 
stream but that gives us a way to work out if we are at the end of the stream 
without consuming bytes
   
   
   


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

Reply via email to