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

◆ Http2Connection()

System.Net.Http.Http2Connection.Http2Connection ( HttpConnectionPool pool,
Stream stream )
inline

Definition at line 1764 of file Http2Connection.cs.

1765 {
1766 _pool = pool;
1767 _stream = stream;
1770 _hpackDecoder = new HPackDecoder(4096, pool.Settings._maxResponseHeadersLength * 1024);
1772 _connectionWindow = new CreditManager(this, "_connectionWindow", 65535);
1773 _rttEstimator = RttEstimator.Create();
1775 _nextStream = 1;
1778 _streamsInUse = 0u;
1780 _idleSinceTickCount = Environment.TickCount64;
1783 _nextPingRequestTimestamp = Environment.TickCount64 + _keepAlivePingDelay;
1785 if (HttpTelemetry.Log.IsEnabled())
1786 {
1787 HttpTelemetry.Log.Http20ConnectionEstablished();
1789 }
1790 if (System.Net.NetEventSource.Log.IsEnabled())
1791 {
1793 }
1794 static long TimeSpanToMs(TimeSpan value)
1795 {
1796 double totalMilliseconds = value.TotalMilliseconds;
1797 return (long)((totalMilliseconds > 2147483647.0) ? 2147483647.0 : totalMilliseconds);
1798 }
1799 }
System.Net.ArrayBuffer _incomingBuffer
readonly Channel< WriteQueueEntry > _writeChannel
System.Net.ArrayBuffer _outgoingBuffer
readonly HttpConnectionPool _pool
static readonly UnboundedChannelOptions s_channelOptions
readonly CreditManager _connectionWindow
readonly HPackDecoder _hpackDecoder
readonly Dictionary< int, Http2Stream > _httpStreams
readonly HttpKeepAlivePingPolicy _keepAlivePingPolicy
static readonly System.Net.NetEventSource Log

References System.Net.Http.Http2Connection._connectionWindow, System.Net.Http.Http2Connection._hpackDecoder, System.Net.Http.Http2Connection._httpStreams, System.Net.Http.Http2Connection._idleSinceTickCount, System.Net.Http.Http2Connection._incomingBuffer, System.Net.Http.Http2Connection._initialServerStreamWindowSize, System.Net.Http.Http2Connection._keepAlivePingDelay, System.Net.Http.HttpConnectionSettings._keepAlivePingDelay, System.Net.Http.Http2Connection._keepAlivePingPolicy, System.Net.Http.HttpConnectionSettings._keepAlivePingPolicy, System.Net.Http.Http2Connection._keepAlivePingTimeout, System.Net.Http.HttpConnectionSettings._keepAlivePingTimeout, System.Net.Http.Http2Connection._markedByTelemetryStatus, System.Net.Http.Http2Connection._maxConcurrentStreams, System.Net.Http.Http2Connection._nextPingRequestTimestamp, System.Net.Http.Http2Connection._nextStream, System.Net.Http.Http2Connection._outgoingBuffer, System.Net.Http.Http2Connection._pendingWindowUpdate, System.Net.Http.Http2Connection._pool, System.Net.Http.Http2Connection._rttEstimator, System.Net.Http.Http2Connection._stream, System.Net.Http.Http2Connection._streamsInUse, System.Net.Http.Http2Connection._writeChannel, System.Net.Http.Http2Connection.RttEstimator.Create(), System.Net.Http.HttpTelemetry.Log, System.Net.NetEventSource.Log, System.Net.Http.Http2Connection.s_channelOptions, System.Net.Http.HttpConnectionPool.Settings, System.stream, System.Environment.TickCount64, System.Net.Http.HttpConnectionBase.TraceConnection(), and System.value.