1. 12 8月, 2022 30 次提交
  2. 11 8月, 2022 10 次提交
    • M
      deac993c
    • S
      [Android][iOS] Enable... · d2c991ef
      Simon Rozsival 提交于
      [Android][iOS] Enable HttpClientHandler.DangerousAcceptAnyServerCertificateValidator when using native handlers (#73763)
      
      The static `HttpClientHandler.DangerousAcceptAnyServerCertificateValidator` getter throws PNSE when the native HTTP handler is enabled because Xamarin.Android's `AndroidMessageHandler` and Xamarin.iOS `NSUrlSessionHandler` didn't use to have support for the `ServerCertificateCustomValidationCallback`.
      
      We already implemented the Android part in .NET 6 and support in the iOS implementation is WIP and we should be able to implement it in time for .NET 7. IMO it's safe to remove the exception in the getter in .NET 7.
      
      Closes #68898
      d2c991ef
    • K
    • M
      Disable newly added TraceSource.Config.Tests on NativeAOT (#73742) · 4893732b
      Michal Strehovský 提交于
      Likely a single file related issue. Not sure how ConfigurationManager grabs the config files, but probably Assembly.Location. Will need to look at that.
      
      ```
      [FAIL] System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.ConfigWithEvents_RuntimeListener
      System.Configuration.ConfigurationErrorsException : Could not create System.Diagnostics.SourceSwitch.
         at System.Diagnostics.TraceUtils.GetRuntimeObject(String, Type, String) + 0x5b8
         at System.Diagnostics.TraceConfiguration.<InitializingTraceSource>g__CreateSwitch|3_0(String, String, TraceConfiguration.<>c__DisplayClass3_0&) + 0x44
         at System.Diagnostics.TraceConfiguration.InitializingTraceSource(Object, InitializingTraceSourceEventArgs) + 0x208
         at System.Diagnostics.TraceSource.Config!<BaseAddress>+0xf7b98c
         at System.Diagnostics.TraceSource.OnInitializing(InitializingTraceSourceEventArgs) + 0x3c
         at System.Diagnostics.TraceSource.Initialize() + 0x78
         at System.Diagnostics.TraceSourceConfigTests.ConfigurationTests.ConfigWithEvents_RuntimeListener() + 0x94
         at System.Diagnostics.TraceSource.Config!<BaseAddress>+0x10bcbe4
         at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0xd8
      ```
      4893732b
    • T
      consume MsQuic 2.1 for windows ARM64 builds (#73713) · 06c625bb
      Tomas Weinfurt 提交于
      * consume MsQuic 2.1 for windows ARM64 builds
      
      * force run on Win11 arm64
      06c625bb
    • R
      [HTTP3] Correctly handle server closing a control stream (#73680) · 80640d4d
      Radek Zikmund 提交于
      * Handle HTTP3 server closing its controls stream
      
      * React to server closing inbound control stream
      
      * Update src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/Http3Connection.cs
      Co-authored-by: NMarie Píchová <11718369+ManickaP@users.noreply.github.com>
      Co-authored-by: NMarie Píchová <11718369+ManickaP@users.noreply.github.com>
      80640d4d
    • P
      [wasm] crypto deadlock fix (#73537) · bb971149
      Pavel Savara 提交于
      * more state locking and sanity
      * renamed the subtle-crypto.ts file, because that's not a worker
      Co-authored-by: NAnkit Jain <radical@gmail.com>
      bb971149
    • M
      Don't excessively generate default constructors (#73683) · 2594ec1b
      Michal Strehovský 提交于
      Fixes #68660.
      
      This is a piece of logic that originates from .NET Native. We didn't have a hard stance on `Activator.CreateInstance<T>` at that time, so we took a conservative approach of always generating the default constructors for all types that have type handle.
      
      Since we now do static analysis and warn if `Activator` is used with something we couldn't analyze. We can trim more.
      
      I would delete the whole table and logic, but I'm not sure if we can't still hit a problem when `CreateInstance<T>` is used with a reflection blocked type - this would affect private reflection within CoreLib (we don't think about reflection when doing `new T()`, so this can happen). With reflection blocking even if dataflow figures out that `BlockedFromReflectionType..ctor` should be reflectable, we won't reflection enable it.
      
      We really should just get rid of reflection blocking (#72570). Then all of this can go away.
      2594ec1b
    • M
      #51393 Skipped tests on MacCatalyst (#73684) · 8ddc35b8
      Meri Khamoyan 提交于
      * #51393 skip tests on MacCatalyst
      8ddc35b8
    • A
      Fix generation of .ni.pdb symbols (#73747) · 732b7434
      Anton Lapounov 提交于
      Emit symbols for all instantiations of a generic method, not just the first one.
      732b7434