Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunk too big error #12

Open
Lucasmm016 opened this issue Jan 9, 2024 · 1 comment
Open

Chunk too big error #12

Lucasmm016 opened this issue Jan 9, 2024 · 1 comment

Comments

@Lucasmm016
Copy link

Lucasmm016 commented Jan 9, 2024

The library works for me, but when receiving very large messages/packets an error is generated: "Chunk too big"

image

I would like to have an option to just ignore these very large chunks, or if it were possible to get them normally without any errors.

@ebraminio
Copy link
Owner

"Chunk too big" comes from https://github.com/aio-libs/aiohttp/blob/6529c77551e2a61d6d9df72653df92180d1fed7c/aiohttp/streams.py#L335 it seems and it isn't that apparent to me how to control that StreamReader's _high_water and limit, if you find someway we can cleanly inject a custom limitation I think putting it on our API will be nice. Thanks!

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

No branches or pull requests

2 participants