Skip to content

Conversation

@aggarg
Copy link
Member

@aggarg aggarg commented Jan 12, 2026

Description

When the HTTP_RESPONSE_DO_NOT_PARSE_BODY_FLAG is set, the HTTP_PARSING_INCOMPLETE state is expected and valid, as the body data may not yet be received from the transport layer.

Previously, this scenario incorrectly returned HTTPInsufficientMemory. This commit corrects the behavior to return HTTPSuccess instead, properly handling the case where body parsing is intentionally deferred.

Test Steps

Ran unit tests.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • [NA] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

#193

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

When the HTTP_RESPONSE_DO_NOT_PARSE_BODY_FLAG is set, the
HTTP_PARSING_INCOMPLETE state is expected and valid, as the body data
may not yet be received from the transport layer.

Previously, this scenario incorrectly returned HTTPInsufficientMemory.
This commit corrects the behavior to return HTTPSuccess instead,
properly handling the case where body parsing is intentionally deferred.

Fixes: FreeRTOS#193

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant