| client.rs |
|
26114 |
- |
| mod.rs |
|
8455 |
- |
| ping.rs |
HTTP2 Ping usage
hyper uses HTTP2 pings for two purposes:
1. Adaptive flow control using BDP
2. Connection keep-alive
Both cases are optional.
# BDP Algorithm
1. When receiving a DATA frame, if a BDP ping isn't outstanding:
1a. Record current time.
1b. Send a BDP ping.
2. Increment the number of received bytes.
3. When the BDP ping ack is received:
3a. Record duration from sent time.
3b. Merge RTT with a running average.
3c. Calculate bdp as bytes/rtt.
3d. If bdp is over 2/3 max, set new max to bdp and update windows. |
14871 |
- |
| server.rs |
|
19389 |
- |
| upgrade.rs |
|
9719 |
- |