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

Enable WS Pings for WS Inbound Transport #1530

Merged

Conversation

dbluhm
Copy link
Contributor

@dbluhm dbluhm commented Dec 3, 2021

When connecting over WS, it is impossible for ACA-Py to detect when the other end has unexpectedly closed (no WS close or error message sent) without using a heartbeat and timeout. With these changes, if a mobile agent connected over WS suddenly loses connectivity (wifi or data signal drops, for instance), the window of time where a message can be lost due to ACA-Py not realizing the WS has entered a bad state is shrunk to at most timeout_interval seconds. An image with a version of these changes has been in testing in a live mediator deployment for a couple of months now with much success.

Copy link
Contributor

@TimoGlastra TimoGlastra left a comment

Choose a reason for hiding this comment

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

Nice

@swcurran
Copy link
Contributor

swcurran commented Dec 6, 2021

@dbluhm -- can you please update this branch and we can merge it. Thanks.

@codecov-commenter
Copy link

Codecov Report

Merging #1530 (9da7f23) into main (5f8b75a) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1530   +/-   ##
=======================================
  Coverage   95.71%   95.71%           
=======================================
  Files         527      527           
  Lines       32372    32381    +9     
=======================================
+ Hits        30984    30993    +9     
  Misses       1388     1388           

@swcurran swcurran merged commit fa749d2 into openwallet-foundation:main Dec 6, 2021
@dbluhm dbluhm deleted the fix/mediation-ws-ping branch July 7, 2023 13:42
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

Successfully merging this pull request may close these issues.

4 participants