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

Add peer heartbeat monitor #36 #157

Conversation

mkamonMdt
Copy link
Contributor

The commit adds peer heartbeat monitoring functionality that registers each heartbeat received and removes peers that stopped missed all heartbeat opportunities in current monitoring period.

The heartbeat-based peer removal will take up to 2x of monitoring period duration to detect a lost peer.

@darioalessandro
Copy link
Member

@mkamonMdt this looks great!!

@darioalessandro darioalessandro self-requested a review June 2, 2024 18:05
Copy link
Member

@darioalessandro darioalessandro left a comment

Choose a reason for hiding this comment

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

looking good! let me know what you think

videocall-client/src/client/video_call_client.rs Outdated Show resolved Hide resolved
videocall-client/src/connection/connection.rs Outdated Show resolved Hide resolved
The commit adds peer heartbeat monitoring functionality that
registers each heartbeat received and removes peers that stopped
missed all heartbeat opportunities in current monitoring period.

The heartbeat-based peer removal will take up to 2x of monitoring
period duration to detect a lost peer.
@mkamonMdt mkamonMdt force-pushed the 36-remove-disconnected-user-canvas branch from bf63a09 to 91fe84c Compare June 3, 2024 08:32
@darioalessandro
Copy link
Member

Pending testing

@darioalessandro darioalessandro merged commit 92aeb8f into security-union:main Jun 11, 2024
mkamonMdt added a commit to mkamonMdt/videocall-rs that referenced this pull request Jun 24, 2024
The commit adds peer heartbeat monitoring functionality that
registers each heartbeat received and removes peers that stopped
missed all heartbeat opportunities in current monitoring period.

The heartbeat-based peer removal will take up to 2x of monitoring
period duration to detect a lost peer.
mkamonMdt added a commit to mkamonMdt/videocall-rs that referenced this pull request Jun 27, 2024
The commit adds peer heartbeat monitoring functionality that
registers each heartbeat received and removes peers that stopped
missed all heartbeat opportunities in current monitoring period.

The heartbeat-based peer removal will take up to 2x of monitoring
period duration to detect a lost peer.
mkamonMdt added a commit to mkamonMdt/videocall-rs that referenced this pull request Jun 27, 2024
The commit adds peer heartbeat monitoring functionality that
registers each heartbeat received and removes peers that stopped
missed all heartbeat opportunities in current monitoring period.

The heartbeat-based peer removal will take up to 2x of monitoring
period duration to detect a lost peer.
mkamonMdt added a commit to mkamonMdt/videocall-rs that referenced this pull request Jun 27, 2024
The commit adds peer heartbeat monitoring functionality that
registers each heartbeat received and removes peers that stopped
missed all heartbeat opportunities in current monitoring period.

The heartbeat-based peer removal will take up to 2x of monitoring
period duration to detect a lost peer.
darioalessandro added a commit that referenced this pull request Jul 4, 2024
* Max 20 canvases on screen: The PeerList

The commit introduces struct component PeerList which is to
resposible for active Peer management. At current stage, the PeerList
should expand and collapse, claiming dedicated screen chunk, accept
(hardcoded at the moment) list of Peers and enable basic filterming
function.

* Max 20 canvases on screen: extract Canvas generator

In preparation to limit Canvases, the commit extracts a function
responsible for thier preparation given vector of peer indetifiers.
No changes in canvas preparation logic were introduced.

* Max 20 canvases on screen: Setup canvas limit

The canvas number is limited up to 20. The limit criteria is simple
alphabetical order. All peers can be seen in the PeerList.

* Max 20 canvases on screen: PeerList refinement

The commit turns raw-text PeerList into scrollable list of
PeerListItems, a struct component that might be further developed
with functional features.

* Add peer heartbeat monitor (#157)

The commit adds peer heartbeat monitoring functionality that
registers each heartbeat received and removes peers that stopped
missed all heartbeat opportunities in current monitoring period.

The heartbeat-based peer removal will take up to 2x of monitoring
period duration to detect a lost peer.

* Update README.md (#159)

* updating base images (#160)

* updating base images

* update base image

* cache build

* fmt

* make ci green again

* pass linter

---------

Co-authored-by: Dario A Lencina-Talarico <darioalessandrolencina@gmail.com>
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.

2 participants