Skip to content

Conversation

@harmon25
Copy link

@harmon25 harmon25 commented Nov 22, 2025

  • buffering support and improved state management when parsing requests
  • chunked sending for large responses
  • auto computes content-length header

Copilot assisted - might not be cleanest implementation of a fix for the issue, but it does the trick.

@harmon25 harmon25 changed the title [:httpd] Enhance HTTP request handling [:httpd] Fix HTTP larger request + response handling Nov 30, 2025
@harmon25 harmon25 changed the title [:httpd] Fix HTTP larger request + response handling [:httpd] Fix HTTP large request + response handling Nov 30, 2025
Copy link
Collaborator

@UncleGrumpy UncleGrumpy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the submission! I did a few problems with this, but we are going to want @bettio or @pguyot to review this as well.

{more, Packet};
{_Pos, _Len} ->
try
{ok, parse_http_request(binary_to_list(Packet))}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line has a syntax error. parse_http_request/1 returns a map().

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm not sure about this one - it does return a map.

@UncleGrumpy
Copy link
Collaborator

Also, we don't have any CI checks for this repo yet, but would you please signoff all of your commits?

@harmon25
Copy link
Author

I could squash + sign when we are done with review? i can also open another PR with the commits signed

@harmon25 harmon25 requested a review from UncleGrumpy December 16, 2025 14:52
@UncleGrumpy
Copy link
Collaborator

UncleGrumpy commented Dec 16, 2025

I could squash + sign when we are done with review? i can also open another PR with the commits signed

Since this PR is focused on just the one bug fix, squash and sign will be great. No need to open a separate PR. I would have helped you get previous commits signed if that was necessary. ;-)

…te management

Signed-off-by: harmon25 <dougwright1@gmail.com>
Signed-off-by: harmon25 <dougwright1@gmail.com>
Signed-off-by: harmon25 <dougwright1@gmail.com>
@harmon25
Copy link
Author

OK i signed off with a force push!

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.

2 participants