Skip to content

Handle malformed HTTP request gracefully#2457

Merged
mzagozen merged 2 commits into
mainfrom
http-graceful-decode-error
Sep 25, 2025
Merged

Handle malformed HTTP request gracefully#2457
mzagozen merged 2 commits into
mainfrom
http-graceful-decode-error

Conversation

@mzagozen

Copy link
Copy Markdown
Collaborator

The HTTP Server actor decodes parts of the HTTP request to str. If the
part is not a valid UTF-8 string, it is not a valid HTTP request, so we
stop processing.

Align the test function and actor signatures with the current guidelines
for test discovery.
The HTTP Server actor decodes parts of the HTTP request to str. If the
part is not a valid UTF-8 string, it is not a valid HTTP request, so we
stop processing.
@mzagozen

Copy link
Copy Markdown
Collaborator Author

perf-vs-main fails as expected with ValueError: to$str: Unicode decode error

@mzagozen mzagozen merged commit 98e3818 into main Sep 25, 2025
34 of 35 checks passed
@mzagozen mzagozen deleted the http-graceful-decode-error branch September 25, 2025 13:42
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