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

◆ OnDataOrHeadersReceived()

void System.Net.Http.Http2Connection.RttEstimator.OnDataOrHeadersReceived ( Http2Connection connection)
inlinepackage

Definition at line 1615 of file Http2Connection.cs.

1616 {
1617 if (_state != State.Waiting)
1618 {
1619 return;
1620 }
1622 bool flag = _initialBurst > 0;
1624 {
1625 if (flag)
1626 {
1627 _initialBurst--;
1628 }
1629 _pingCounter--;
1630 if (System.Net.NetEventSource.Log.IsEnabled())
1631 {
1632 connection.Trace($"[FlowControl] Sending RTT PING with payload {_pingCounter}", "OnDataOrHeadersReceived");
1633 }
1634 connection.LogExceptions(connection.SendPingAsync(_pingCounter));
1636 _state = State.PingSent;
1637 }
1638 }
static readonly System.Net.NetEventSource Log

References System.Net.Http.Http2Connection.RttEstimator._initialBurst, System.Net.Http.Http2Connection.RttEstimator._pingCounter, System.Net.Http.Http2Connection.RttEstimator._pingSentTimestamp, System.Net.Http.Http2Connection.RttEstimator._state, System.Diagnostics.Stopwatch.GetTimestamp(), System.Net.NetEventSource.Log, System.Net.Http.HttpConnectionBase.LogExceptions(), System.Net.Http.Http2Connection.RttEstimator.PingIntervalInTicks, System.Net.Http.Http2Connection.SendPingAsync(), and System.Net.Http.Http2Connection.Trace().

Referenced by System.Net.Http.Http2Connection.ProcessDataFrame(), and System.Net.Http.Http2Connection.ProcessHeadersFrame().