You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aiohttp does not properly handle chunked transfer encoding when the chunk-size does not match the actual data size. Instead of rejecting the request with a 400 Bad Request, the server hangs indefinitely.
Describe the bug
Aiohttp does not properly handle chunked transfer encoding when the chunk-size does not match the actual data size. Instead of rejecting the request with a
400 Bad Request
, the server hangs indefinitely.To Reproduce
Expected behavior
The server should reject with
400 Bad Request
.RFC 9112 says this:
This may imply that the length of
chunk-data
should be as indicated bychunk-size
.Take waitress as example:
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
propcache Version
yarl Version
OS
Ubuntu 11.4.0-1ubuntu1~22.04
Related component
Server
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: