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

Simplify connection statistics #1740

Merged
merged 3 commits into from
Feb 20, 2020
Merged

Simplify connection statistics #1740

merged 3 commits into from
Feb 20, 2020

Conversation

tadaskay
Copy link
Member

@tadaskay tadaskay commented Feb 19, 2020

Follow up for #1674

  • Instead of exposing channel, expose a method to simply query stats at any given time.
    Connection manager starts statistics publisher which reports after given intervals.
  • Remove stats.interval flags and use a single const connection.StatsReportInterval (2 seconds).
  • Remove some callback adapters and implement openvpn stats/state event handling on the connection itself.
  • Unify output of datasize units (use 1024 base).

- Instead of exposing channel, expose a method to simply query stats at any given time.
Connection manager starts statistics publisher which reports after given intervals.
- Remove stats.interval flags and use a single const connection.StatsReportInterval (2 seconds).
- Remove some callback adapters and implement openvpn stats/state event handling on the connection itself.
@tadaskay tadaskay marked this pull request as ready for review February 20, 2020 11:25
@tadaskay tadaskay merged commit 8ff8f36 into master Feb 20, 2020
@tadaskay tadaskay deleted the 1674-insane-speed-polish branch February 20, 2020 11:37
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.

None yet

3 participants