Commit Graph
1678 Commits
Author SHA1 Message Date
Marco Rossignoli 528e91dabf Replace identical files with CoreLib mirror (dotnet/corefx#28593)
Commit migrated from https://github.com/dotnet/corefx/commit/5041dbb272ae05b360db538cf62fc2847277fd7e
2018-04-17 16:05:44 -07:00
Marco Rossignoli 20e05bb5cd Pass Uri.IdnHost to WinHttpConnect (dotnet/corefx#28849)
* pass IdnHost

* add manual functional test

* cleanup

* fix comment

* address PR feedback

* address PR feedback

* address PR feedback

* address PR feedback

* address PR feedback

* address PR feedback

* address PR feedback

* fix IPv6 IdnHost

* address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/b2893f07cf61dae81d424dd676a0d903a36a10c2
2018-04-17 09:55:34 -07:00
Stephen Toub 975f40acce Add basic GET SocketsHttpHandler perf tests (dotnet/corefx#29105)
* Add basic GET SocketsHttpHandler perf tests

Tests for:
- http vs https
- connection: close vs keep-alive
- chunked vs content-length response
- various response lengths

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/27149e4a86ba5827229b8294f1dd19f3f7d58184
2018-04-14 12:31:58 -04:00
Caesar Chen 7669319f3f SocketsHttpHandler: Add workaround for ipv6 LLA address (dotnet/corefx#28971)
* add workaround for ipv6 LLA address

* address comment

* fix comment


Commit migrated from https://github.com/dotnet/corefx/commit/0698997390ddc15abb375eba73a5d712ccdb8266
2018-04-13 17:34:32 -07:00
Stephen Toub ed4847e6a0 Address some SocketsHttpHandler feedback (dotnet/corefx#29081)
- We were using WriteAsciiStringAsync in one place we shouldn't have been.  Change it to WriteStringAsync.
- We were potentially overflowing in a multiplication on MaxResponseHeadersLength if it was set to a very large value.  Changed it to use long multiplication and to cap the max length at int.MaxValue.
- We were accidentally using DateTimeOffset.Now instead of UtcNow when getting the current time during stale pool removal.  Change to UtcNow.
- We had an unnecessary/unreachable catch block.  Remove it.
- In a race condition where the handler and thus its pool manager was disposed while the cleaning timer callback was in flight (either already queued or already running), we could potentially dispose of the timer and then the callback attempt to change the timer and incur an ObjectDisposedException that would go unhandled on a thread pool thread.  One fix would be to track disposal under the same lock that's used to mutate the cleaning timer, but that incurs the cost of tracking disposal and taking a lock on disposal in order to deal with a rare race condition (that we've never actually seen happen).  Instead, I opt to simply catch and eat any ODEs that occur.
- If either of the connection lifetime values are set at 0, we avoid putting connections back into a pool and thus also avoid creating the cleaning timer.  But we're still putting the created pool into the pools collection, which in theory in an extreme case could be a leak.  The fix is simply to not store the pool into the pools in this case.

Commit migrated from https://github.com/dotnet/corefx/commit/c998e559dc3682bda42bedd8379442f1e457d136
2018-04-13 16:00:26 -04:00
Ahson Khan 3274fc4e6f Collapse leftover AsSpan().Slice(...) into AsSpan(...) (dotnet/corefx#29078)
Commit migrated from https://github.com/dotnet/corefx/commit/5c01da951f57ad69d64a5d7c7357d4f033cb5fea
2018-04-12 22:40:43 -07:00
David Shulman ec81e61c40 Optimize proxy PAC file discovery process for SocketsHttpHandler (dotnet/corefx#29050)
This PR will reduce the calls to WinHTTP GetProxyForUrl() if a previous call recently discovered
no PAC file within a certain timeframe. We call this API when "Automatically detect settings"
is turned on. The default configuration on Windows has this proxy setting always turned on. This
is ironic given that most network environments don't have a PAC file on the network. So, it's
important to try to optimize this common case on customers' networks.

Initial testing shows at least a 2x speed improvement with these changes.

I did not use any locking mechanisms since those would drag down performance. In the worst case,
any race condition would mean we might call GetProxyForUrl() an extra time. But since we're only
filtering on ERROR_WINHTTP_AUTODETECTION_FAILED, it is unlikely to actually change over time.
That particular error means that the WPAD protocol was able to complete on the network, but the
answer discovered is that there is no PAC file registered on the network.

Fixes dotnet/corefx#28543


Commit migrated from https://github.com/dotnet/corefx/commit/712d3065cef7f28eae96a578b8bd73870e9b2cd5
2018-04-12 17:13:22 -07:00
Max Kerr 7a12691e93 Disable SSL3 test case on RedHat 6 (dotnet/corefx#28998)
Commit migrated from https://github.com/dotnet/corefx/commit/5411a5c72920e1fac7e6315aad0ec302de0d1c55
2018-04-12 09:07:37 -07:00
Jan Kotas 0c82fdc6cb Simplify sspicli interop marshaling (dotnet/corefx#29031)
* Delete unnecessary wrapper

* Simplify sspicli interop marshaling

This makes it both faster and more AOT friendly

* CR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/437e8823028d09ad5c62ec71e2393417e3f7130c
2018-04-11 18:28:51 -04:00
Tomas Weinfurt 9546f3cbe7 fix get for UseDefaultCredentials with SockerHttpHandler (dotnet/corefx#28982)
* fix get for UseDefaultCredentials with SockerHttpHandler

* add commmet for curl/socket handler differecnes.


Commit migrated from https://github.com/dotnet/corefx/commit/0bafd875567744e84bb6c9ed114f77c0b110cfd9
2018-04-11 14:59:18 -04:00
Krzysztof Wicher c2f3338220 Handle User-Agent/Server writing similarly to HttpHeaders.GetHeaderString (dotnet/corefx#28994)
* Handle User-Agent/Server writing similarly to HttpHeaders.GetHeaderString

* add a testcase and comment for user-agent writing

* apply feedback

* further simplify test

* Update HttpClientTest.cs


Commit migrated from https://github.com/dotnet/corefx/commit/b703f310d5330bad7ae4b571175f259a3a1bc4b0
2018-04-11 01:37:40 -07:00
David Shulman 8425f3af58 Add more logging to SocketsHttpHandler (dotnet/corefx#28943)
As part of looking at the usability of .NET Core network logging (compared to
.NET Framework), I did a walkthru of the current logging in SocketsHttpHandler.
I noticed some inconsistencies in how the NetEventSource logging is being used.

For the 2.1 release, I wanted to at least add more logging to some key areas
including places where we ignore errors/exceptions.

There is still more work to do to improve the logging to make it useful for
developers. This includes doing a better job at logging for System.Net.Sockets
as well as looking into other tool options besides PerfView to look at the traces.

I also fixed the sample script for using starting the traces using Windows logman.
The default log buffer size is too small even for for simple traces. Now, using PerfView
on all the System.Net.* traces no longer shows an error about traces being dropped.

Commit migrated from https://github.com/dotnet/corefx/commit/158ed4d059a875e6828c176ce7ecc4a221b331e3
2018-04-10 17:42:42 -07:00
Paulo Janotti 3a2342d63e Clear SSL error queue after MultiDestroy and MultiRemoveHandle (dotnet/corefx#28980)
* Clear SSL error queue after MultiDestroy and MultiRemoveHandle

* nit: add blank line after #endif


Commit migrated from https://github.com/dotnet/corefx/commit/653207f5bfa725f4cd1ee862220132e79a1ec69f
2018-04-10 15:43:52 -07:00
Stephen Toub 2bcd2ef0d8 Ensure ConnectHelper creates a Segment with a min of 2 (dotnet/corefx#28983)
Commit migrated from https://github.com/dotnet/corefx/commit/e9504da892fe0b2a349e8b6a55e6bbbf6bc6e40b
2018-04-10 18:30:41 -04:00
Ahson Khan 60c0ffcd4e Update the System.Runtime and System.Memory ref based on new buildtools (dotnet/corefx#28906)
* Update the System.Runtime and System.Memory ref based on new buildtools

* Fix HttpContent TryGetBuffer and update System.Runtime ref

* Update System.Memory ref and fix PipeAwaitable (assign CancellationTokenRegistration)

* Fix 'use of unassigned local' error in System.Memory performance tests


Commit migrated from https://github.com/dotnet/corefx/commit/bd1911e9b3bf104fd9821a4fc68ea1baafe780ef
2018-04-10 15:00:26 -07:00
Ahson Khan eda3bb8370 Fix ROM Content Test to use IMemoryOwner instead of MemoryManager (dotnet/corefx#28947)
Commit migrated from https://github.com/dotnet/corefx/commit/79797279e2e293beb5d9ff60672e4d56cf7c02de
2018-04-10 13:21:11 -07:00
Tomas Weinfurt d53f22127e propagate default credentials so we can pick up default ticket if available (dotnet/corefx#28964)
Commit migrated from https://github.com/dotnet/corefx/commit/728db8f53610a9ef6e13831b8b7921a438ed08f8
2018-04-10 09:04:27 -04:00
Caesar Chen 3aab539b89 Fix proxied ipv6 address request formatting and fix port handling for proxied IP address on SocketsHttpHandler (dotnet/corefx#28740)
* fix proxied ipv6 address request format and fix port handling for ip address

* address feedback

* change naming for test data


Commit migrated from https://github.com/dotnet/corefx/commit/18d685f3b1ed8fd22601fb0bce3eb928f1c4206f
2018-04-05 15:17:20 -07:00
Paulo Janotti 9365b6fb44 Re-enable PostAsync_RedirectWith307_LargePayload dotnet/corefx#23768 (dotnet/corefx#28828)
Fixes dotnet/corefx#23768

Commit migrated from https://github.com/dotnet/corefx/commit/28dcece5c5e7d30446ae90e027076722513b716f
2018-04-04 16:54:06 -07:00
Max Kerr 6d31e9d045 Improve parsing of WinINet default proxy strings in SocketsHttpHandler (dotnet/corefx#28671)
This is a partial fix for dotnet/corefx#28603.

Commit migrated from https://github.com/dotnet/corefx/commit/22e88da0b430d16def339e52891acf0e0563dbf6
2018-04-04 11:26:29 -07:00
Stephen Toub 3f56012599 Disable draining test on CurlHandler (dotnet/corefx#28814)
Commit migrated from https://github.com/dotnet/corefx/commit/0a61dafdf643f436373c1ad1aba3da4a9a8b19bc
2018-04-04 11:22:40 -07:00
Stephen Toub 6c551076f0 Make default SocketsHttpHandler SslProtocols include Tls11/12 on Win7/2008R2 (dotnet/corefx#28788)
Windows 7 and Windows 2008 R2 support TLS 1.1 and 1.2, but for legacy reasons by default those protocols are not enabled when a developer elects to use the system default.  However, in .NET Core 2.0 and earlier, HttpClientHandler would enable them, due to being a wrapper for WinHTTP, which enabled them.  Both for compatibility and because we prefer those higher protocols whenever possible, SocketsHttpHandler also pretends they're part of the default when running on Win7/2008R2.

Commit migrated from https://github.com/dotnet/corefx/commit/0c7a1de0448c9dee76723d0bedd90f76c3436662
2018-04-04 09:59:09 -07:00
Caesar Chen 109d0485aa disable test (dotnet/corefx#28789)
Commit migrated from https://github.com/dotnet/corefx/commit/e4521cbd572764f3a140366cce7b39402e1a14cc
2018-04-03 16:49:01 -07:00
Stephen Toub fcb85a56d7 Fix ProxyExplicitlyProvided_DefaultCredentials_Ignored test (dotnet/corefx#28770)
I couldn't get it to fail locally, but I believe the issue was that sporadically WinHttpHandler would not reuse the original connection, in which case it would either not close the first and the test would hang because nothing was accepting the second connection, or it would close the first and fail because the server was expecting a second request on the connection.  This fixes it by using Connection: close on the first response so that the client won't reuse the same connection.

Commit migrated from https://github.com/dotnet/corefx/commit/586cffcdfdf23ad6c193a4bf37fce88a1bf69508
2018-04-03 09:00:59 -07:00
Tomas Weinfurt ff137b9fba add proxy bypass list processing for windows (dotnet/corefx#28210)
* add bypass list processing

* remove 10.37.129.2

* update assembly references

* add bypass list processing

* remove 10.37.129.2

* update assembly references

* use Regex.Escape to escape . and [. Add more test cases.

* feedback from reviews

* fix some of the style comments. more changes to come.

* feedback from @stephentoub

* use UriHostNameType and IdnHost consistently to possibly avoid allocations. Add new test for various unexpected input

* replace String.Compare with string.Compare


Commit migrated from https://github.com/dotnet/corefx/commit/c9d1ec1764f421f35cfe0bbc71bf2f81bc8f0f8d
2018-04-02 13:45:51 -07:00
Caesar Chen 0ffc020ac5 Fix ipv6 address format in Host header (dotnet/corefx#28578)
* fix ipv6 format in host header

* address feedback

* address feedback

* fix common case

* reduce allocation

* address feedback

* fix indexof issue

* disable on curlhandler

* revert to simple fix

* address feedback and add comment

* address test issue, enable on curlhandler

* fix framework failure

* address feedback


Commit migrated from https://github.com/dotnet/corefx/commit/24889e293731f12b11f1205b641cd3e6cb3a3b90
2018-04-02 11:26:29 -07:00
Stephen Toub d623113435 Fix comment in AuthenticationHelper.NtAuth.cs
Commit migrated from https://github.com/dotnet/corefx/commit/6bcfd33ec5e6c3a8ebc81bd0cde0254f4f5a22b0
2018-04-01 23:12:13 -04:00
Geoff Kizer fdcc0d8a09 if server sends invalid challenge, don't continue processing (dotnet/corefx#28704)
Commit migrated from https://github.com/dotnet/corefx/commit/660dc94410cdaaba1bfc5bd6720e78eee5c5786c
2018-04-01 18:06:52 -07:00
Stephen Toub 40573ec3da Disable frequently failing GetAsync_SupportedSSLVersion_Succeeds test
Commit migrated from https://github.com/dotnet/corefx/commit/031e40a64bd7a148f43e5a49055abbf5743b4543
2018-03-31 01:01:45 -04:00
Stephen Toub fd20c03b0c Stop blocking explicit opt-in to Ssl2/3 in SslStream and HttpClient (dotnet/corefx#28639)
By default, .NET Core defaults to allowing TLSv1, TLSv1.1, and TLSv1.2.  However, whereas .NET Framework allows a developer to opt-in to SSLv2/SSLv3, .NET Core currently blocks it.  This means developers are unable to use .NET Core when they need to communicate with an endpoint they don't control and that's unfortunately limited to one of these protocols, which blocks adoption of .NET Core.

This commit stops blocking these protocols.  They're still disabled by default, and compiling against them still results in a deprecation warning, but if a developer chooses to ignore the warning and explicitly sets SslProtocols, they are at least able to use the protocols, subject to whatever the underlying operating system allows (e.g. Windows stops supporting SSLv2 as of v1607).

Commit migrated from https://github.com/dotnet/corefx/commit/3cc6fda0c6abe76eea222c165ebdf816e83df564
2018-03-30 22:00:37 -07:00
Stephen Toub 71385bc553 Merge pull request dotnet/corefx#28638 from stephentoub/shhallocs
Some more allocation reduction in SocketsHttpHandler

Commit migrated from https://github.com/dotnet/corefx/commit/26f3de6527bdde97d589134d10780a418dd9ff98
2018-03-30 18:27:39 -07:00
Stephen Toub d789825410 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/9f9b34a2dd82cbd19766c720748bf50f37968752
2018-03-30 17:34:33 -04:00
Ahson Khan fc292cfab0 Split OwnedMemory into MemoryManager and IMemoryOwner (dotnet/corefx#28640)
* Update IRetainable, OwnedMemory, and MemoryHandle APIs

* Split OwnedMemory into MemoryManager and IMemoryOwner

* Update ReadOnlySequence, ArrayMemoryPool, and BufferSegment

* Update System.Memory and System.IO.Pipeline tests

* Temporarily skipping the failing Pipelines tests until impl is corrected.

* Update the reference assembly to match implementation and cleanup

* Update API compat baseline for UAPAOT and add GenFacadesIgnoreMissingTypes

* Fix the System.Runtime ref

* Add back the Pin methods to the uapaot api compat baseline

* Clone the API compat baseline from uapaot and add it for uap as well.

* Update BuildTools, CoreClr, CoreFx, CoreSetup, ProjectNTfs, ProjectNTfsTestILC to preview3-02630-01, preview3-26330-08, preview3-26330-06, preview3-26330-04, beta-26330-00, beta-26330-00, respectively

* Fix pipelines tests and update the api compat baseline shim for uapaot

* Add empty Unpin override to pipe pool test.

* Fix the System.Net.Http Functional tests


Commit migrated from https://github.com/dotnet/corefx/commit/f592e887e2349ed52af6a83070c42adb9d26408c
2018-03-30 14:30:48 -07:00
Stephen Toub c1596ec7ac Fix race condition on read ahead task in SocketsHttpHandler (dotnet/corefx#28637)
We're supposed to only use a ValueTask<int> once.  But there's a race condition where we may not only use one more than once, we might do so concurrently, resulting in a variety of different exceptions depending on how the race condition manifests.

When we take a connection out of the connection pool, we want to check whether it's still valid for use.  We could poll, but since the request/response is going to need to issue at least one read anyway, we just do so preemptively, then checking whether the read completed synchronously (if it did, we can't use the connection).  This gets stored in a field on the HttpConnection that can later be read.  However, we may also create the read ahead task in another situation, which is if we're unable to easily fish out the underlying socket used by the connection (as happens with tunneling), when the pool periodically scavenges and looks for dead connections, rather than polling it just issues that read even earlier.  Doing so, however, means that we'll have kicked off tasks that are likely to complete with an exception if the connection is terminated in an unfriendly manner.  To avoid such exceptions spamming TaskScheduler.UnobservedTaskException, we check this stored task when disposing the connection.

That, however, creates the race condition.  If the connection is disposed (e.g. due to cancellation) at just the wrong time, the request/response may be in the process of working with that initial read just as the disposal goes to interact with that same read ahead task.  Badness results.

The fix is to add a tiny amount of synchronization, such that just one call site can take ownership of the read ahead task.

Commit migrated from https://github.com/dotnet/corefx/commit/366496832fbf9c893a33ebed176d6e053c721ca1
2018-03-30 14:25:29 -07:00
Stephen Toub c62e1d8f06 Reduce buffering in ManagedWebSocket.ReceiveAsync (dotnet/corefx#28577)
* Change SocketsHttpHandler's 101 response stream to buffer response reads

The connection already has a buffer; use it.

* Reduce buffering in ManagedWebSocket.ReceiveAsync

Today we use a big-ish receive buffer, reading all data into the receive buffer and then copying from there into the caller-provided destination buffer.  With this change, we assume that the underlying stream is providing the desired level of buffering, and thus only use a buffer small enough to handle message headers and control payloads (the latter for simplicity, as no caller-supplied buffer is available there).

* Change ClientWebSocket to avoid creating a large buffer


Commit migrated from https://github.com/dotnet/corefx/commit/06aa6f0ce4cdf78985f029f218007a7d55f8965f
2018-03-30 09:53:26 -07:00
Stephen Toub 1c299a603d Pool SocketAsyncEventArgs used to establish connections
SocketAsyncEventArgs is a heavy object to use once and throw away.  This change lets us pool and reuse them.


Commit migrated from https://github.com/dotnet/corefx/commit/da8c62d22bc68eed381f1a3c7b895150e5b21946
2018-03-29 22:48:37 -04:00
Stephen Toub dcf261fed6 Dispose connections immediately when returned to a pool with zero timeouts
Commit migrated from https://github.com/dotnet/corefx/commit/b4301aad9ee8de67e47345a7cc40fcdd95a286ca
2018-03-29 22:48:35 -04:00
Stephen Toub 731a31b894 Avoid creating cleaning timer if no connections will ever be added to pool
Commit migrated from https://github.com/dotnet/corefx/commit/48719a0c3b49ad788320fe3c65b918b0ff97810c
2018-03-29 22:48:33 -04:00
Max Kerr 5887c6de13 Make it clear that the default proxy cannot by set via environment variable on Windows (dotnet/corefx#28610)
* Remove ActiveIssue tag to make it clear this is by design.

* Disable test using attribute.


Commit migrated from https://github.com/dotnet/corefx/commit/620d01432fd37e69cb106752524bed24185a422b
2018-03-29 15:41:18 -07:00
Max Kerr 1080d31cde Enable digest test runs on CurlHandler. (dotnet/corefx#28571)
Now that the authentication test failures have been diagnosed, re-enable most of the Digest authentication test cases on CurlHandler. Four additional cases had to be moved to the SocketsHttpHandler only tests, since they fail on CurlHandler and do not have fixes yet.

The digest test cases have to use credentials without a domain when run against CurlHandler. This is because Curl does not allow us to set the realm parameter used to send the domain along with a digest authorization header.


Commit migrated from https://github.com/dotnet/corefx/commit/0257e6cc85c3a0421cb99a473fa187a43eb46b6a
2018-03-29 11:25:02 -07:00
Tomas Weinfurt 30e1b77363 enable tcp keep-alive on curl handler (dotnet/corefx#28588)
Commit migrated from https://github.com/dotnet/corefx/commit/fe63206856998c223adb0240a1e57201b6cfd467
2018-03-29 10:10:23 -07:00
Paulo Janotti 6382bdb453 Disable Selectedsites test by default (dotnet/corefx#28599)
These tests were not intended to be enabled by default, control them via a env var.

Commit migrated from https://github.com/dotnet/corefx/commit/45fb8a627e727df337580291b45317ee5e66b5a5
2018-03-29 09:15:23 -07:00
Paulo Janotti c79012a5e5 CurlHandler is deadlocking like WinHttpHandler (dotnet/corefx#28587)
* CurlHandler is deadlocking like WinHttpHandler

This repros consistently for Release on High Sierra. Issue dotnet/corefx#27746 already tracks it.

* Adding a comment to clarify scope


Commit migrated from https://github.com/dotnet/corefx/commit/50d4e1ce620f26ec4aebe26c121a769fc8e724ab
2018-03-28 23:29:23 -07:00
Paulo Janotti b85ab9824d Add test to visit sites with SocketsHttpHandler (dotnet/corefx#28480)
Adds a small test to visit a list of sites using SocketsHttpHandler and allow easy debugging and comparison with platform handlers in case one needs to investigate. The tests are disabled by default and are controlled by Xunit traits.

Commit migrated from https://github.com/dotnet/corefx/commit/8e18a0e0453654ed88c3729ffad580dff984601a
2018-03-28 08:22:08 -07:00
Tomas Weinfurt bcf90e9e92 improve handling of proxy environmental variables (dotnet/corefx#28088)
* improve handling of proxy environmental variables
* feedback from reviews
* update port parsing
* use Span instead of Substring to parse port
* fix more feedback


Commit migrated from https://github.com/dotnet/corefx/commit/d5ecebef316f2be53a25894d8f1b4c6b91698e36
2018-03-27 13:48:19 -07:00
Stephen Toub 78ca1d62b3 Add test for SocketsHttpHandler Brotli response (dotnet/corefx#28494)
SocketsHttpHandler doesn't currently automatically decode Brotli responses, but add tests to validate we can at least do so manually.

Commit migrated from https://github.com/dotnet/corefx/commit/175984f5c05de918effd97bf322fb002e0da925b
2018-03-27 07:20:08 -07:00
Raul Hidalgo Caballero c494078b57 Add readonly to s_gzipHeaderValue and s_deflateHeaderValue (dotnet/corefx#28469)
Commit migrated from https://github.com/dotnet/corefx/commit/89247090eb45c3a02c66c563a4846e9eed521d95
2018-03-26 06:46:01 -07:00
Anirudh Agnihotry fa70fc1287 Rename new Stream.Read/Write{Async} Span/Memory arguments to buffer (dotnet/corefx#28429)
* updated implementation

* http content fixed


Commit migrated from https://github.com/dotnet/corefx/commit/61fdee4e0bba91f7d5a4ca05828d123f7709e6e5
2018-03-23 21:35:40 -04:00
David Shulman 879f046c38 Disable some failing/hanging HTTP tests (dotnet/corefx#28425)
Opened some issues dotnet/corefx#28423 dotnet/corefx#28424. These tests are failing/hanging on my
dev box all the time.

Commit migrated from https://github.com/dotnet/corefx/commit/4a549f7fe7e8ea19f4fea8a233e525ebe0df7abb
2018-03-23 15:30:11 -07:00
Anirudh Agnihotry 3fd1710eab Rename new Stream.Read/Write{Async} Span/Memory source/Destination arguments to buffer (dotnet/corefx#28397)
* Replaced with buffer in non-shared files

* Comment Corrected


Commit migrated from https://github.com/dotnet/corefx/commit/6b9440735abc9c4e369376bca097766527971a7a
2018-03-23 07:20:57 -04:00