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

[FR] Added response time statistics #1538

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ethouris
Copy link
Collaborator

@ethouris ethouris commented Sep 10, 2020

Fixes #1520

This PR adds the new statistical fields per socket that allow to show the average and maximum response time. The response time is the time distance between the time when the sending function is called and the last received packet from the peer. The average value is only for orientation as to how much this value varies. The maximum value is the most important for orientation as to how much the response time can span and how to set the limit for groubstabtimeo.

@ethouris ethouris added [API] Area: Changes in SRT library API [core] Area: Changes in SRT library core Impact: Low Priority: High Type: Enhancement Indicates new feature requests labels Sep 11, 2020
@ethouris ethouris added this to the v1.5.0 - Sprint 23 milestone Sep 11, 2020
@mbakholdina mbakholdina modified the milestones: v1.5.0 - Sprint 23, v1.5.0 Sep 21, 2020
srtcore/core.h Outdated
Comment on lines 1192 to 1195
/// This function records the passed current time as the last response time.
/// Before doing it, however, it checks if there exist any previous such time
/// and updates statistics accordingly.
void calculateResponseTime(const time_point& now)
Copy link
Collaborator

Choose a reason for hiding this comment

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

If it records the time, then a better name could be recordResponseTime.
Otherwise this operation is unexpected: m_tsLastRspTime = now;.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[API] Area: Changes in SRT library API [core] Area: Changes in SRT library core Priority: High Type: Enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Statistics: link response time
3 participants