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(app): Increase RPC ping threshhold to work around API lock #2106

Merged
merged 1 commit into from
Aug 22, 2018

Conversation

mcous
Copy link
Contributor

@mcous mcous commented Aug 22, 2018

overview

Bug ticket + fix.

Long running HTTP requests (like POST /robot/home) lock up the webserver, preventing it from responding to the app's RPC pings. If the threshold is low enough, the app will close down the websocket before the API unlocks. #2083 introduced a threshold that was lower than the time it takes the robot to finish homing.

This PR works around that issue by increasing the missed-ping threshold until the system can be rearchitected.

changelog

  • fix(app): Increase RPC ping threshhold to workaround API lock during POST /robot/home

review requests

Make sure clicking "Home" in the robot settings page doesn't cause the RPC connection to close

@mcous mcous requested a review from sfoster1 August 22, 2018 19:25
@mcous mcous added bug app Affects the `app` project ready for review fix PR fixes a bug labels Aug 22, 2018
@codecov
Copy link

codecov bot commented Aug 22, 2018

Codecov Report

Merging #2106 into edge will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             edge    #2106   +/-   ##
=======================================
  Coverage   32.48%   32.48%           
=======================================
  Files         452      452           
  Lines        7264     7264           
=======================================
  Hits         2360     2360           
  Misses       4904     4904
Impacted Files Coverage Δ
app/src/rpc/client.js 89.18% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef0bd89...bdb3436. Read the comment docs.

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 on Morgan-bot (with a handy visual aid of having her run app disconnect while mine was fine)

@mcous mcous merged commit 25a4897 into edge Aug 22, 2018
@mcous mcous deleted the app_increase-rpc-ping-pong-th branch August 22, 2018 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Affects the `app` project bug fix PR fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants