-
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
5c7e4b1
commit 6cc706a
Showing
1 changed file
with
72 additions
and
76 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