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.
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.