-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): Buffer incomplete messages
Previously, if we did not find trailers in the incoming message and the message len was longer than the actual buffer we returned the buffer. This would mean we would fail to parse incomplete message buffers. This fixes `find_trailers` to support three return types, `Trailers(len)`, `IncompleteBuf`, `Done`. Previously, there was only `Some(len)` and `None`.
- Loading branch information
1 parent
6af8d5c
commit 38d6988
Showing
1 changed file
with
82 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters