-
-
Notifications
You must be signed in to change notification settings - Fork 217
Closed
Description
The readme should be updated to explain what happens when llhttp_execute() returns HPE_PAUSED.
From what I can see, we need to get the input position where it stopped via error_pos (badly named variable, since pausing is not a real error) or via llhttp_get_error_pos() and then resume with that as the next input pointer, while updating the length accordingly.
For example I wrongly assumed it will store the current position and resume correctly when passing the same input again. Or you might assume it stores the unprocessed data internally somehow.
Should also mention that if HPE_OK is returned it is guaranteed that the entire input has been consumed.
Metadata
Metadata
Assignees
Labels
No labels