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

◆ OnServerGoAway()

void System.Net.Http.Http3Connection.OnServerGoAway ( long lastProcessedStreamId)
inlineprivate

Definition at line 215 of file Http3Connection.cs.

216 {
219 lock (SyncObj)
220 {
222 {
223 if (System.Net.NetEventSource.Log.IsEnabled())
224 {
225 Trace("HTTP/3 server sent GOAWAY with increasing stream ID. Retried requests may have been double-processed by server.", "OnServerGoAway");
226 }
227 return;
228 }
231 {
232 if (activeRequest.Value.StreamId > lastProcessedStreamId)
233 {
234 list.Add(activeRequest.Value);
235 }
236 }
238 }
239 foreach (Http3RequestStream item in list)
240 {
241 item.GoAway();
242 }
243 }
void Add(TKey key, TValue value)
override void Trace(string message, [CallerMemberName] string memberName=null)
readonly HttpConnectionPool _pool
readonly Dictionary< QuicStream, Http3RequestStream > _activeRequests
void InvalidateHttp3Connection(Http3Connection connection)
static readonly System.Net.NetEventSource Log

References System.Net.Http.Http3Connection._activeRequests, System.Net.Http.Http3Connection._lastProcessedStreamId, System.Net.Http.Http3Connection._pool, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Net.Http.Http3Connection.CheckForShutdown(), System.Net.Http.HttpConnectionPool.InvalidateHttp3Connection(), System.item, System.list, System.Net.NetEventSource.Log, System.Net.Http.Http3Connection.SyncObj, and System.Net.Http.Http3Connection.Trace().

Referenced by System.Net.Http.Http3Connection.ProcessServerControlStreamAsync().