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

sending large HTTP responses doesn't work #187

Open
mgaunard opened this issue Apr 13, 2023 · 0 comments
Open

sending large HTTP responses doesn't work #187

mgaunard opened this issue Apr 13, 2023 · 0 comments

Comments

@mgaunard
Copy link

Sending any HTTP response larger than 16MB leads to
warning: 172.31.37.161:50082 : Closing connection: buffer size too large (16777370 >= 16777216)

Only way to fix it appears to set a very large client buffer size on the server. Clearly not a very scalable solution.

The problem seems to be due to the design that insists on copying the whole data from from the response into the connection buffer, which is then drained when the socket is ready, instead of draining the response directly.

@mgaunard mgaunard changed the title sending large HJTTP responses doesn't work sending large HTTP responses doesn't work Apr 13, 2023
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

1 participant