Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RefreshRtt()

void System.Net.Http.Http2Connection.RttEstimator.RefreshRtt ( Http2Connection connection)
inlineprivate

Definition at line 1679 of file Http2Connection.cs.

1680 {
1682 long val = ((_minRtt == 0L) ? long.MaxValue : _minRtt);
1683 long value = Math.Min(val, TimeSpan.FromSeconds((double)num / (double)Stopwatch.Frequency).Ticks);
1685 if (System.Net.NetEventSource.Log.IsEnabled())
1686 {
1687 connection.Trace($"[FlowControl] Updated MinRtt: {MinRtt.TotalMilliseconds} ms", "RefreshRtt");
1688 }
1689 }
static readonly long Frequency
Definition Stopwatch.cs:13
static readonly System.Net.NetEventSource Log
static int Exchange(ref int location1, int value)

References System.Net.Http.Http2Connection.RttEstimator._minRtt, System.Net.Http.Http2Connection.RttEstimator._pingSentTimestamp, System.Threading.Interlocked.Exchange(), System.Diagnostics.Stopwatch.Frequency, System.TimeSpan.FromSeconds(), System.Diagnostics.Stopwatch.GetTimestamp(), System.L, System.Net.NetEventSource.Log, System.Math.Min(), System.Net.Http.Http2Connection.Trace(), and System.value.

Referenced by System.Net.Http.Http2Connection.RttEstimator.OnInitialSettingsAckReceived(), and System.Net.Http.Http2Connection.RttEstimator.OnPingAckReceived().