Skip to content

Commit

Permalink
chore: parser cleanups
Browse files Browse the repository at this point in the history
Also, eliminate cases where we return INPUT_PENDING but do not consume the whole string.
This should simplify buffer management for the caller, so that if they pass a string that
did not result in complete parsed request, at least the whole string is consumed and can be discarded.

This PR handles only the ParseLen function that now stashes all the partial data if not enough data is provided.

Signed-off-by: Roman Gershman <[email protected]>
  • Loading branch information
romange committed Nov 6, 2024
1 parent ae3faf5 commit 93682c7
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 121 deletions.
Loading

0 comments on commit 93682c7

Please sign in to comment.