1. 13 8月, 2022 1 次提交
  2. 11 8月, 2022 1 次提交
  3. 10 8月, 2022 1 次提交
  4. 08 8月, 2022 1 次提交
  5. 07 8月, 2022 1 次提交
    • D
      Process incoming frames before sending frames for Http2Connection. (#73307) · ccc22503
      Dan Espinosa 提交于
      * Process incoming frames before sending frames for Http2Connection.
      
      Moves the ProcessIncomingFramesAsync method before sending the preface.
      This fixes a deadlock when using a NamedPipe as a transport where
      incoming frames need to be read before being able to write.
      Also rename _expectingSettingsAck to _receivedSettingsAck to clearly
      specify that the settings frame has being received.
      
      Fix #73097
      
      * Addressed PR Feedback.
      
      Added test that will prevent regresions when using Http2 with NamedPipe as a transport.
      Addressed PR Feedback
      
      Fix #73307
      
      * Update ConnectCallback_UseNamedPipe_Success test
      
      Fix #73307
      
      * Moved ConnectCallback_UseNamedPipe_Success test to
      SocketsHttpHandlerTest_ConnectCallback_Http2 class
      
      Fix #73307
      Co-authored-by: NDaniel Espinosa <luespino@microsoft.com>
      ccc22503
  6. 05 8月, 2022 2 次提交
  7. 04 8月, 2022 1 次提交
    • R
      Disable... · 2ea6162a
      Radek Zikmund 提交于
      Disable System.Net.Http.Functional.Tests.SocketsHttpHandler_Cancellation_Test_NonParallel.CancelPendingRequest_DropsStalledConnectionAttempt on Linux (#73300)
      
      2ea6162a
  8. 03 8月, 2022 1 次提交
  9. 02 8月, 2022 2 次提交
  10. 29 7月, 2022 1 次提交
  11. 28 7月, 2022 2 次提交
  12. 27 7月, 2022 1 次提交
  13. 26 7月, 2022 1 次提交
  14. 25 7月, 2022 2 次提交
  15. 24 7月, 2022 1 次提交
  16. 22 7月, 2022 2 次提交
  17. 21 7月, 2022 2 次提交
  18. 20 7月, 2022 2 次提交
    • S
      [Android] Fix some System.Net tests (#71385) · e9b40f5e
      Simon Rozsival 提交于
      * Implement IncludeNetworkSecurityConfig
      
      * Use IncludeNetworkSecurityConfig
      
      * Fix tests
      
      * Remove active issue attributes
      
      * Rename certificate file
      
      * Revert unnecessary changes
      
      * TMP: re-throw caught exception to reveal more information in logs
      
      * Revert "TMP: re-throw caught exception to reveal more information in logs"
      
      This reverts commit 039d051d6ac60c1c3f1baf37b0c06872f87cac84.
      
      * TMP: add and update res folders until they are merged into runtime-assets
      
      * Fix System.Net.Requests tests
      
      * Re-enable System.Net.Http functional tests
      
      * Try fixing failing test
      
      * Skip failing test
      
      * Add missing using
      
      * Remove temporary test data
      
      * Relax exception type assertion for Android
      
      * Code cleanup
      
      * Fix test failures in System.Net.WebSockets.Client.Tests
      
      * Remove active issue attribute
      
      * Remove most explicit usages of the server certificate custom validation callback in tests
      
      * Fix several tests
      
      * Remove weird condition
      
      * Code clean-up
      
      * Remove unrelated active issue attributes
      
      * Turn ActiveIssue attributes into permanent SkipOnPlatform
      
      * Update explanation for SkipOnPlatform
      
      * Revert partial fix and keep active issue
      
      * Keep active issue for android x64 and x86
      
      * Remove invalid attribute
      
      * Fix test on Browser
      
      * Allow all certificates by default
      
      * Fix build
      
      * Fix http client handler factory on Browser
      
      * Skip failing test
      
      * Fix net48 build
      
      * Revert unintentional change in WinHttpHandler tests
      
      * Avoid using unsupported property on Browser
      
      * Remove unnecessary default value
      
      * Avoid using unsupported property on Browser
      e9b40f5e
    • M
      Avoid adding an HttpClient.Timeout message to ConnectTimeout exceptions (#72274) · bf7cdc58
      Miha Zupan 提交于
      * Avoid adding an HttpClient.Timeout message to ConnectTimeout exceptions
      
      * Avoid wrapping unknown OCEs as well
      
      * Update comment
      Co-authored-by: NNatalia Kondratyeva <knatalia@microsoft.com>
      Co-authored-by: NNatalia Kondratyeva <knatalia@microsoft.com>
      bf7cdc58
  19. 19 7月, 2022 1 次提交
  20. 18 7月, 2022 1 次提交
  21. 17 7月, 2022 1 次提交
    • A
      Fix typos (#72314) · 3ea30ed3
      Adeel Mujahid 提交于
      * Fix typos
      
      * Cleanup trailing whitespaces in committed files
      
      * Revert a macro for win32 compat
      
      * Disambiguate test data method
      
      * Revert XMLPath test which rely on external assets
      
      * Revert whitespace change in Xml tests
      
      * Revert ClrEtwAl and ILLink.Shared
      
      * Revert crossgen2 props/targets and *.wxl
      3ea30ed3
  22. 15 7月, 2022 2 次提交
  23. 14 7月, 2022 2 次提交
    • M
      [QUIC] System.Net.Quic API made public (#72031) · 4827ee82
      Marie Píchová 提交于
      * System.Net.Quic removed from ASP transport package and made part of SDK ref
      
      * Removed manual references to System.Net.Quic.csproj
      4827ee82
    • M
      [QUIC] API QuicStream (#71969) · af436523
      Marie Píchová 提交于
      * Quic stream API surface
      
      * Fixed test compilation
      
      * Fixed http test compilation
      
      * HttpLoopbackConnection Dispose -> DisposeAsync
      
      * QuicStream implementation
      
      * Fixed some tests
      
      * Fixed all QUIC and HTTP tests
      
      * Fixed exception type for stream closed by connection close
      
      * Feedback
      
      * Fixed WebSocket.Client test build
      
      * Feedback, test fixes
      
      * Fixed build on framework and windows
      
      * Fixed winhandler test
      
      * Swap variable based on order in defining class
      
      * Post merge fixes
      
      * Feedback and build
      
      * Reverted connection state to pass around abort error code
      
      * Fixed exception type.
      af436523
  24. 13 7月, 2022 4 次提交
    • S
      More reliably clean up more SafeHandle instances (#71991) · 199580be
      Stephen Toub 提交于
      * More reliably clean up more SafeHandle instances
      
      This calls Dispose on SafeHandles (or things wrapping SafeHandles) that were otherwise being left for finalization:
      1. Some of these are fixing finalization happening even on success paths (typically where the implementation isn't disposing of something that directly or indirectly wraps a SafeHandle).
      2. Some of these are fixing finalization happening for invalid SafeHandles.
      3. Some of these are fixing tests to finalize less.  My goal with fixing the tests was to eliminate the noise in order to find instances of the other two cases.
      
      These were found primarily via two means:
      - Debug-instrumentation in SafeHandle to log when one is finalized.  This instrumentation is built into debug/checked builds of SafeHandle and requires setting the DEBUG_SAFEHANDLE_FINALIZATION environment variable to "1".
      - Auditing use of SafeHandle.IsInvalid
      
      There's a lot more that can be cleaned up using the SafeHandle instrumentation, but I'm pausing here for now.  The System.IO.Pipes, System.IO.FileSystem, and System.Security.Cryptography tests are clean on Windows.
      199580be
    • M
      [QUIC] API QuicConnection (#71783) · d434c4a5
      Marie Píchová 提交于
      * Listener comment; PreviewFeature attribute
      
      * Feedback
      
      * QuicConnection new API including compilable implementation
      
      * Fixed logging
      
      * Fixed S.N.Quic and S.N.Http tests
      
      * Options now correspond to the issue
      
      * Feedback
      
      * Comments, PreviewFeature attribute and RemoteCertificate disposal.
      
      * Preview feature attribute is assembly wide
      
      * Some typos
      
      * Fixed test with certificate
      
      * Default values as constants
      
      * Event handlers split into methods called via switch expression.
      
      * Some more comments
      
      * Unified unsafe usage
      
      * Fixed some more tests
      
      * Cleaned up some exceptions and resource strings.
      
      * Feedback
      
      * Latest greatest API proposal.
      
      * Fixed Http solution
      
      * Feedback
      d434c4a5
    • R
      Implement new QuicException proposal (#71432) · aa156dbb
      Radek Zikmund 提交于
      * Add QuicException as in proposal
      
      * Map other MsQuic errors to QuicException
      
      * Fix System.Net.Http
      
      * Always set HResult in QUIC-related exception
      
      * Fix possible incorrect exception when writing into aborted stream
      
      * Code review feedback
      
      * Fix ref files
      
      * Use latest generated interop
      
      * Remove MsQuicException
      
      * Code review feedback
      
      * Remove TODO
      
      * move ThrowHelper to Internal
      
      * Code review changes
      
      * Minor change
      aa156dbb
    • K
      Implement HTTP/2 WebSockets (#70895) · 0bc88417
      Katya Sokolova 提交于
      * downgrade proposal for HttpClient
      
      * HttpClient to handle ws over h2
      
      * ClientWebSocket to handle ws over h2
      
      * Add property for protocol header and remove it from known headers
      
      * Update src/libraries/System.Net.Http/src/System/Net/Http/HttpRequestMessage.cs
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      
      * Address review feedback
      
      * Rename HttpVersion and HttpVersionPolicy
      
      * Apply suggestions from code review
      Co-authored-by: NChris Ross <Tratcher@Outlook.com>
      
      * address review feedback
      
      * address review feedback
      
      * address review feedback
      
      * Apply suggestions from code review
      Co-authored-by: NChris Ross <Tratcher@Outlook.com>
      
      * fix race condition on setting enable connect
      
      * inherit h2 read and writes streams
      
      * Apply suggestions from code review
      Co-authored-by: NChris Ross <Tratcher@Outlook.com>
      
      * fix H2PACK encoding issue
      
      * add timeout for waiting settings task
      
      * generalized settings received task
      
      * Update src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs
      Co-authored-by: NChris Ross <Tratcher@Outlook.com>
      
      * Fixing HttpStream tests
      
      * Apply suggestions from code review
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      
      * address review feedback
      
      * Apply suggestions from code review
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      
      * Address review feedback
      
      * Adapt test to ValueTask.FromException
      
      * Apply suggestions from code review
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      
      * Adding connect tests
      
      * Apply suggestions from code review
      Co-authored-by: NMiha Zupan <mihazupan.zupan1@gmail.com>
      
      * feedback + skip tests on browser
      
      * Feedback + test for websocket stream
      
      * Update src/libraries/System.Net.Http/src/Resources/Strings.resx
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      
      * Address review feedback
      Co-authored-by: NStephen Toub <stoub@microsoft.com>
      Co-authored-by: NChris Ross <Tratcher@Outlook.com>
      Co-authored-by: NMiha Zupan <mihazupan.zupan1@gmail.com>
      0bc88417
  25. 11 7月, 2022 2 次提交
  26. 10 7月, 2022 1 次提交
    • R
      [wasm] Bump emscripten to 3.1.12 (#70693) · 246f2c8d
      Radek Doulik 提交于
      * Use new docker images
      * Silence warnings
      * Bump dependencies
      * Bump emscripten version
      * Update dependencies
      * Fix linking
      * Move the link fix to default link response file
      
      To make tests build
      * Disable one more test
      Affected by https://github.com/dotnet/runtime/issues/51375
      
      * Ignore link errors coming from native refs
      This avoids this error, where the linker seems more strict now:
      ```
            [] EXEC : error : undefined symbol: _ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv (referenced by top-level compiled C/C++ code) [/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/blz_nativeref_aot_Debug/blz_nativeref_aot_Debug.csproj]
            [] EXEC : warning : Link with `-sLLD_REPORT_UNDEFINED` to get more information on undefined symbols [/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/blz_nativeref_aot_Debug/blz_nativeref_aot_Debug.csproj]
            [] EXEC : warning : To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0` [/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/blz_nativeref_aot_Debug/blz_nativeref_aot_Debug.csproj]
            [] EXEC : warning : __ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/blz_nativeref_aot_Debug/blz_nativeref_aot_Debug.csproj]
            [] EXEC : error : undefined symbol: _ZNKSt3__221__basic_string_commonILb1EE20__throw_length_errorEv (referenced by top-level compiled C/C++ code) [/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/blz_nativeref_aot_Debug/blz_nativeref_aot_Debug.csproj]
            [] EXEC : warning : __ZNKSt3__221__basic_string_commonILb1EE20__throw_length_errorEv may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/blz_nativeref_aot_Debug/blz_nativeref_aot_Debug.csproj]
            [] EXEC : error : Aborting compilation due to previous errors [/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/blz_nativeref_aot_Debug/blz_nativeref_aot_Debug.csproj]
            [] emcc : error : '/datadisks/disk1/work/BDDD0A63/w/A3D60932/e/dotnet-workload/packs/Microsoft.NET.Runtime.Emscripten.3.1.12.Node.linux-x64/7.0.0-preview.6.22308.2/tools/bin/node
      ```
      * Avoid another linker error in tests
      * Disable failing test
      * Try to use emscripten_force_exit in mono_wasm_exit
      
      * Bump docker image to get newer v8
      * Fix remaining conflict
      * Use 3.1.12 icu again, it was lost with merge
      * Revert "Try to use emscripten_force_exit in mono_wasm_exit"
      
      This reverts commit bdba37b8a7ac96cead35758dc234b3d71b13880d.
      
      * Revert "Ignore link errors coming from native refs"
      This reverts commit f2bfa1f22e84ecd6e9e84142ce87a97a9ecf69c3.
      
      * [wasm] Don't run tests on windows with v8
      - We are only interested in testing with v8 on linux
      
      This changes:
      1. All the AOT tests to run with browser on windows
      2. Library tests (interpreter) will run with browser, and nodejs
      
      * Fix System.Net.Http.Functional.Tests failing due to trimming
      .. on Windows/AOT:
      * [wasm] Fix windows/tests/aot timeout to be same for running on browser
      .. as for v8.
      * Disable failing tests - issue#71877
      Co-authored-by: NRadek Doulik <radekdoulik@google.com>
      Co-authored-by: NAnkit Jain <radical@gmail.com>
      246f2c8d
  27. 09 7月, 2022 1 次提交