Implement ZLibStream and fix SocketsHttpHandler deflate support#42717
Implement ZLibStream and fix SocketsHttpHandler deflate support#42717stephentoub merged 4 commits intodotnet:masterfrom
Conversation
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
|
Tagging subscribers to this area: @dotnet/ncl |
src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Compression/src/System/IO/Compression/ZLibStream.cs
Outdated
Show resolved
Hide resolved
fb7b37a to
0a43f93
Compare
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.Decompression.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Compression/src/System/IO/Compression/ZLibStream.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/DecompressionHandler.cs
Outdated
Show resolved
Hide resolved
0a43f93 to
9447f0f
Compare
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/DecompressionHandler.cs
Outdated
Show resolved
Hide resolved
9447f0f to
17eedcb
Compare
carlossanlop
left a comment
There was a problem hiding this comment.
LGTM. Left some minor documentation suggestions to consider.
src/libraries/System.IO.Compression/src/System/IO/Compression/ZLibStream.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Compression/src/System/IO/Compression/ZLibStream.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Compression/src/System/IO/Compression/ZLibStream.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Compression/src/System/IO/Compression/ZLibStream.cs
Outdated
Show resolved
Hide resolved
|
One of the CI failures is: There are also some System.Net.Http failures, not sure if related to the changes here: For example (the spanish error message says "operacion anulada" which means "aborted operation"): |
cc8d4d6 to
bc948e8
Compare
- Implements ZLibStream, exposes it in the ref, and add tests - Fixes SocketsHttpHandler to use ZLibStream instead of DeflateStream
Co-authored-by: Carlos Sanchez <[email protected]>
bc948e8 to
cb7442a
Compare
|
@stephentoub you removed the breaking change labels ... is that because you implemented the detection that accepts both? |
Correct. |
Fixes #2236
Fixes #38022
(This completes the commit from #2236 (comment).)
The tests require the updated runtime-assets test data from dotnet/runtime-assets#87.
cc: @ericstj @carlossanlop @geoffkizer