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

◆ BlocklistAuthority()

void System.Net.Http.HttpConnectionPool.BlocklistAuthority ( HttpAuthority badAuthority)
inlinepackage

Definition at line 975 of file HttpConnectionPool.cs.

976 {
978 if (altSvcBlocklist == null)
979 {
980 lock (SyncObj)
981 {
983 if (altSvcBlocklist == null)
984 {
988 }
989 }
990 }
991 bool flag = false;
992 bool flag2;
994 {
997 {
998 _altSvcEnabled = false;
999 flag = true;
1000 }
1001 }
1002 lock (SyncObj)
1003 {
1005 {
1008 }
1009 }
1010 if (flag2)
1011 {
1012 Task.Delay(600000).ContinueWith(delegate
1013 {
1015 {
1017 }
1019 }
1020 if (flag)
1021 {
1022 Task.Delay(600000).ContinueWith(delegate
1023 {
1024 _altSvcEnabled = true;
1026 }
1027 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
volatile HashSet< HttpAuthority > _altSvcBlocklist
CancellationTokenSource _altSvcBlocklistTimerCancellation
static Task Delay(TimeSpan delay)
Definition Task.cs:3453
bool Change(int dueTime, int period)
Definition Timer.cs:131

References System.Net.Http.HttpConnectionPool._altSvcBlocklist, System.Net.Http.HttpConnectionPool._altSvcBlocklistTimerCancellation, System.Net.Http.HttpConnectionPool._altSvcEnabled, System.Net.Http.HttpConnectionPool._authorityExpireTimer, System.Net.Http.HttpConnectionPool._http3Authority, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Threading.Timer.Change(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Threading.Tasks.TaskScheduler.Default, System.Threading.Tasks.Task< TResult >.Delay(), System.Net.Http.HttpConnectionPool.ExpireAltSvcAuthority(), System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), System.Net.Http.HttpConnectionPool.SyncObj, and System.Threading.CancellationTokenSource.Token.

Referenced by System.Net.Http.HttpConnectionPool.GetHttp3ConnectionAsync(), and System.Net.Http.HttpConnectionPool.TrySendUsingHttp3Async().