Gah, this bug has haunted me for weeks but think I finally fixed it!https://github.com/http-rs/async-h1/pull/84 …
-
Show this thread
-
Lil chonk encoder; such a good lad https://github.com/http-rs/async-h1/blob/53330af58154d57b5a740c440e53107c7b9873f9/src/server/encode.rs#L199-L253 …
1 reply 0 retweets 2 likesShow this thread -
The way chompks in HTTP chonk encoding are encoded is: 1. length of the chunk 2. \r\n 3. {data} 4. \r\n 5. if this was the last chunk, one final \r\n Most of the logic revolves around calculating the right offsets for each of these.
1 reply 0 retweets 0 likesShow this thread
Okay, bug hunting over. Had to pull up a hex editor, but we even have tests now! Oh and also verified in every browser I could try.
5:39 PM - 12 Apr 2020
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.