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

◆ OnPingAckReceived()

void System.Net.Http.Http2Connection.RttEstimator.OnPingAckReceived ( long payload,
Http2Connection connection )
inlinepackage

Definition at line 1640 of file Http2Connection.cs.

1641 {
1642 if (_state != State.PingSent && _state != State.TerminatingMayReceivePingAck)
1643 {
1644 if (System.Net.NetEventSource.Log.IsEnabled())
1645 {
1646 connection.Trace($"[FlowControl] Unexpected PING ACK in state {_state}", "OnPingAckReceived");
1647 }
1649 }
1650 if (_state == State.TerminatingMayReceivePingAck)
1651 {
1652 _state = State.Disabled;
1653 return;
1654 }
1655 if (_pingCounter != payload)
1656 {
1657 if (System.Net.NetEventSource.Log.IsEnabled())
1658 {
1659 connection.Trace($"[FlowControl] Unexpected RTT PING ACK payload {payload}, should be {_pingCounter}.", "OnPingAckReceived");
1660 }
1662 }
1663 RefreshRtt(connection);
1664 _state = State.Waiting;
1665 }
static readonly System.Net.NetEventSource Log
void RefreshRtt(Http2Connection connection)

References System.Net.Http.Http2Connection.RttEstimator._pingCounter, System.Net.Http.Http2Connection.RttEstimator._state, System.Net.NetEventSource.Log, System.Net.Http.Http2Connection.RttEstimator.RefreshRtt(), System.Net.Http.Http2Connection.ThrowProtocolError(), and System.Net.Http.Http2Connection.Trace().

Referenced by System.Net.Http.Http2Connection.ProcessPingAck().