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

Set body size for Proxy / streams to 16mb #30608

Merged
merged 1 commit into from
Jan 9, 2020
Merged

Set body size for Proxy / streams to 16mb #30608

merged 1 commit into from
Jan 9, 2020

Conversation

pvizeli
Copy link
Member

@pvizeli pvizeli commented Jan 9, 2020

Description:

With all the Proxy code inside (Ingress / API proxy) + the audio handling and video, we need to update the max size from 1mb to 16MB. I see no issue to do that and allow bigger junks to stream.

According: home-assistant/supervisor#1423

@pvizeli pvizeli added this to the 0.104.0 milestone Jan 9, 2020
@pvizeli pvizeli requested a review from a team as a code owner January 9, 2020 09:21
@probot-home-assistant probot-home-assistant bot added core integration: http small-pr PRs with less than 30 lines. labels Jan 9, 2020
@probot-home-assistant
Copy link

Hey there @home-assistant/core, mind taking a look at this pull request as its been labeled with a integration (http) you are listed as a codeowner for? Thanks!

Copy link
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

✅ This will solve a lot of issues with Ingress applications that support file upload or use larger bodies (e.g., large Node-RED flows).

I just wonder if we need to handle the exception thrown by this better, e.g., catching the HTTPRequestEntityTooLarge raised if the request body exceeds this?

@pvizeli
Copy link
Member Author

pvizeli commented Jan 9, 2020

The HTTPRequestEntityTooLarge is used on aiohttp handler to make the 403 like it is written on documentation. We can handle that exception but need to trow it anyway again.

@frenck frenck merged commit a4c1114 into dev Jan 9, 2020
@delete-merged-branch delete-merged-branch bot deleted the more-body branch January 9, 2020 10:09
@lock lock bot locked and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants