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

fix(robot-server): Use wsproto instead of websockets #6229

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

amitlissack
Copy link
Contributor

Overview

Websockets does not support uploads larger than 1mb. Uvicorn supports wsproto which can handle unlimited size.

Changelog

Include wsproto in Pipfile and Config.in.
Add --ws wsproto to uvicorn command line

Review requests

Using runapp load json protocol file in #6159. It should load and simulate.

Risk assessment

Minimal. Different websockets library.

closes #6159

@amitlissack amitlissack added fix PR fixes a bug robot server Affects the `robot-server` project labels Jul 28, 2020
@amitlissack amitlissack requested review from a team July 28, 2020 20:03
@amitlissack amitlissack requested a review from a team as a code owner July 28, 2020 20:03
@amitlissack amitlissack requested review from mcous and sanni-t and removed request for a team July 28, 2020 20:03
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Tested with the buildroot build; server starts fine and protocols upload acceptably. Now testing the large protocol to verify the 1MB limit.

Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

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

Tested with the large protocol, looks good to me!

Copy link
Contributor

@mcous mcous left a comment

Choose a reason for hiding this comment

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

Tested by uploading the BR build and it works on my Pi

@amitlissack amitlissack merged commit c23e980 into edge Jul 29, 2020
@amitlissack amitlissack deleted the robot-server_use-ws-proto branch July 29, 2020 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix PR fixes a bug robot server Affects the `robot-server` project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: RPC WebSocket disconnects if protocol is > ~1 MB
3 participants