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

feat(bin/client): add --stats flag printing connection statistics #1766

Merged
merged 2 commits into from
Mar 21, 2024

Commits on Mar 21, 2024

  1. feat(bin/client): add --stats flag printing connection statistics

    This commit introduces the `--stats` flag to `neqo-client`. It will print the
    `neqo_transport::Stats` of the `Connection` after close.
    
    ```
    $ cargo run --bin neqo-client -- --stats http://127.0.0.1:12345/10000000
    
    stats for Client ...
      rx: 7728 drop 1 dup 0 saved 1
      tx: 819 lost 12 lateack 0 ptoack 4
      resumed: false
      frames rx:
        crypto 3 done 1 token 1 close 0
        ack 40 (max 805) ping 0 padding 0
        stream 7704 reset 0 stop 0
        max: stream 0 data 0 stream_data 0
        blocked: stream 0 data 0 stream_data 19
        datagram 0
        ncid 7 rcid 0 pchallenge 0 presponse 0
        ack_frequency 4
      frames tx:
        crypto 2 done 0 token 0 close 0
        ack 783 (max 7769) ping 5 padding 0
        stream 5 reset 0 stop 0
        max: stream 0 data 0 stream_data 30
        blocked: stream 0 data 0 stream_data 0
        datagram 0
        ncid 0 rcid 0 pchallenge 0 presponse 0
        ack_frequency 2
    ```
    mxinden committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c63b14a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f0ee38 View commit details
    Browse the repository at this point in the history