Commit Graph
640 Commits
Author SHA1 Message Date
dotnet-bot 448f29e87a Updating CoreFx dependencies to beta-24226-04
Commit migrated from https://github.com/dotnet/corefx/commit/af366060d798874f1eead8de1959ff122807df6a
2016-06-26 17:35:42 -04:00
dotnet-bot fced012d5d Updating CoreFx dependencies to beta-24226-03
Commit migrated from https://github.com/dotnet/corefx/commit/6c4ecdb7ce67800d1a7aa3e9192f0bcf12d31a50
2016-06-26 13:14:22 +00:00
Stephen Toub 30be06c3c1 Update depencies, corefx to 226-02 and coreclr to 226-01
Commit migrated from https://github.com/dotnet/corefx/commit/10ae0d632b8f36458051118e5561f72f4a69b84e
2016-06-26 07:20:52 -04:00
Stephen Toub 303c684410 Updating CoreFx dependencies to beta-24225-03
Commit migrated from https://github.com/dotnet/corefx/commit/f61cc53a2f1053118d5270e9ff3b72e2c6624992
2016-06-25 19:01:45 -04:00
dotnet-bot ed53909106 Updating CoreFx dependencies to beta-24225-02
Commit migrated from https://github.com/dotnet/corefx/commit/6978404cd54fe063b7482718c6dab979b5011792
2016-06-25 07:13:31 +00:00
Stephen Toub 36d951ad6d Merge pull request dotnet/corefx#9665 from stephentoub/fix_contentlength
Fix HttpRequestMessage reuse handling in HttpClientHandler on Unix

Commit migrated from https://github.com/dotnet/corefx/commit/313cf2a5c883dd3cc73cb382a465ed2f9f70997c
2016-06-24 17:41:22 -04:00
Stephen Toub 50a73e1779 Fix HttpRequestMessage reuse handling in HttpClientHandler on Unix
HttpRequestMessages are meant to be used for a single request.  However, that checking is done by HttpClient rather than by HttpClientHandler.  As a result, if code bypasses HttpClient, e.g. by using HttpMessageInvoker or by using a custom HttpMessageHandler sitting between the HttpClient and the HttpClientHandler, the same HttpRequestMessage can be used multiple times without an exception being thrown warning of the invalid usage.  And on Windows, things happen to work, but with our Unix implementation was never expecting this scenario and doesn't work well with it:
- The handler is explicitly disposing of the request content stream rather than leaving that up to the request content's disposal to handle.
- The handler is removing the Content-Length header from the request message content, as a simple way to avoid overriding the Content-Length header that libcurl itself may send based on previous configuration.
- The handler is using ReadAsStreamAsync to get the request stream to send, but ReadAsStreamAsync caches the returned stream, so if the same request message is reused with the same Content, the stream will have already advanced to the end of the stream, and when the message gets reused, we won't have content to send.

This commit fixes that:
- We now don't dispose the request content stream.  That'll be left up to the request content's disposal.
- We now don't remove the ContentLength header from the request message.  We instead just check as we're writing out the headers whether the header is Content-Length, skipping it if it is.
- We now store the original position of a seekable stream that's provided to us, and at the end of the request, rather than disposing of the stream, we rewind to the original position if it exists.  (If the stream isn't seekable, reusing the request message wouldn't be possible anyway.)

This last point also fixes another theoretical issue.  When libcurl wants to go back to the beginning of the stream (e.g. in a redirect scenario where it needs to rewind), it asks us to seek back to the beginning.  We're currently seeking back to the exact position asked for.  But the stream may have come in to us already advanced beyond 0, in which case we need to seek back to the requested offset plus that original position rather than just the requested offset.

And in doing this, I noticed that we were inadvertently allowing a set of closure/delegate allocations due to inadvertently using some captured state in a place where we were trying to avoid that.  I fixed that as well.

We were also marking everything complete before we'd cleaned up all resources, which meant that any failures from such cleanup would go unnoticed.  I've fixed that to ensure we clean up all state before we officially declare the async operation done.


Commit migrated from https://github.com/dotnet/corefx/commit/650cb2698f02635ea69da3ec9637f6ad9e7229c5
2016-06-24 09:23:57 -04:00
dotnet-bot 1c493739ac Updating CoreFx dependencies to beta-24224-02
Commit migrated from https://github.com/dotnet/corefx/commit/57f7571be7a10ad5c11b5a93a4fcb5f42a656047
2016-06-24 07:14:41 +00:00
dotnet-bot 364183e648 Updating CoreFx dependencies to beta-24223-09
Commit migrated from https://github.com/dotnet/corefx/commit/7d22459ac2c92ed931dea3e0f90b16351c254e4b
2016-06-23 22:06:56 +00:00
dotnet-bot be169e7e65 Updating CoreFx dependencies to beta-24223-03
Commit migrated from https://github.com/dotnet/corefx/commit/de7fe45c006d4079d458e595543189d2b4dad4f2
2016-06-23 13:17:10 +00:00
dotnet-bot f66f1846f1 Updating CoreFx dependencies to beta-24222-04
Commit migrated from https://github.com/dotnet/corefx/commit/c202a00f9b3994ebf2387490f5fec9340820071c
2016-06-22 19:11:51 +00:00
Wes Haggard 3b7f4610ca Update S.T.RegularExpressions to version 4.2.0
Commit migrated from https://github.com/dotnet/corefx/commit/9ce507c4f5c570619709c051573fb65d81c63977
2016-06-22 09:39:30 -07:00
dotnet-bot c1d91d4777 Updating CoreFx dependencies to beta-24222-03
Commit migrated from https://github.com/dotnet/corefx/commit/087ec74b9e436299974dce655741a3dcc98f5d1c
2016-06-22 13:08:58 +00:00
dotnet-bot 5cab5e61b9 Updating CoreFx dependencies to beta-24221-04
Commit migrated from https://github.com/dotnet/corefx/commit/82aa3ea6236d6990a50770fb77b79ffb4e06c0b5
2016-06-21 18:25:20 +00:00
dotnet-bot 4609395f97 Updating CoreFx dependencies to beta-24221-03
Commit migrated from https://github.com/dotnet/corefx/commit/6e72d3c127cae0a175c63dc942b8c7d8ac5da38b
2016-06-21 13:14:17 +00:00
dotnet-bot a4819aef80 Updating CoreFx dependencies to beta-24221-02
Commit migrated from https://github.com/dotnet/corefx/commit/818ad5af9340661114d112e6f7d511e380bc4f81
2016-06-21 07:17:46 +00:00
Matt Galbraith 1a00d4e5b6 Update references to Microsoft.DotNet.BuildTools.TestSuite to a version that understands uap10.0, add version validation rule for same.
Update reference to Xunit.Console.Netcore to pick up new version which does not throw if Console Color APIs do.


Commit migrated from https://github.com/dotnet/corefx/commit/91260ea102e681b16864596f0b9b2f14d3be82be
2016-06-20 16:49:13 -07:00
Stephen Toub 715ce22c00 Merge pull request dotnet/corefx#9548 from ellismg/port-http2-debian-test-fix
Allow the HTTP2 protocol test to pass with untrusted chains on Debian.

Commit migrated from https://github.com/dotnet/corefx/commit/12f1d055b4ac1ed41b1e4501e2a10a3cc24fc305
2016-06-20 16:06:52 -04:00
Stephen Toub def7b43d50 Mark another ActiveIssue
Commit migrated from https://github.com/dotnet/corefx/commit/daa30fcf33d57203456ed6c0ce8c42650074d5db
2016-06-20 14:48:11 -04:00
Stephen Toub 7295751d20 Separate diagnostics tests into their own class
The only change to the logic is that the tests now use RemoteInvoke to run each test in its own process, so as to avoid EventSource and DiagnosticSource interference.

Also removed the xunit attributes from the assembly that prevented parallelization.  It's no longer needed as of this change.


Commit migrated from https://github.com/dotnet/corefx/commit/542d85e15bfe5fdeb59d7e6f7fb3b15a08640ebd
2016-06-20 14:13:10 -04:00
Jeremy Barton 18178d80e2 Allow the HTTP2 protocol test to pass with untrusted chains on Debian.
The TLS context is set up to make this chain:
  CN=http2.akamai.com, O=Akamai Technologies Inc., L=Santa Clara, S=CA, C=US
  CN=Verizon Akamai SureServer CA G14-SHA2, OU=Cybertrust, O=Verizon Enterprise Solutions, L=Amsterdam, C=NL
  CN=Baltimore CyberTrust Root, OU=CyberTrust, O=Baltimore, C=IE
  CN=GTE CyberTrust Global Root, OU="GTE CyberTrust Solutions, Inc.", O=GTE Corporation, C=US

making use of the cross-signed Baltimore CyberTrust Root certificate.
Unfortunately, that chain is not trusted on Debian 8.4 (GTE CyberTrust Global Root was removed), and a combination of data and installed software results in the valid chain using the self-signed Baltimore root is never built.

To prevent this situation from making the tests show as a failure, selectively allow Debian 8 to succeed on an incomplete chain.


Commit migrated from https://github.com/dotnet/corefx/commit/316370ac1d58a90f6788ecb924b41cc93aec043e
2016-06-20 10:55:52 -07:00
Stephen Toub e9cc8f37c8 Merge pull request dotnet/corefx#9544 from stephentoub/clientcert_test
Tweak HTTP client certificates test and add ActiveIssue

Commit migrated from https://github.com/dotnet/corefx/commit/f42926c99b7d5311b61065b347fc05f7b911671a
2016-06-20 13:27:22 -04:00
Stephen Toub 5a23884046 Tweak HTTP client certificates test and add ActiveIssue
With forced GC/finalization at the right moment, the test currently fails on Windows.


Commit migrated from https://github.com/dotnet/corefx/commit/4cdb8dc1ba73ef02ef719b9a0ee336dbefca3b10
2016-06-20 08:37:30 -04:00
Eric St. John 01ee645e45 Update CoreFx packages to beta-24217-04
Commit migrated from https://github.com/dotnet/corefx/commit/35ee6b6688b57d0b445a252160a922404c35af5e
2016-06-17 15:01:55 -07:00
Eric St. John 45ad837e55 Build product assemblies against stable packages
I'm leaving tests compiling against pre-release.  Once we have a
new build of "beta" packages we'll need to update tests to those
versions.


Commit migrated from https://github.com/dotnet/corefx/commit/7cf5bb608f8da26730bdaf8864b2ddb68735cb38
2016-06-16 16:03:54 -07:00
Eric St. John 3b1d041ed2 Bump versions across corefx and move to beta
Now that we have stable packages for our current versions we need to
bump the 3rd portion (bugfix) to represent code-changes without API
additions.


Commit migrated from https://github.com/dotnet/corefx/commit/92a411776004239482ba1b5032afc8483518810c
2016-06-16 16:03:53 -07:00
Stephen Toub ca016defa0 Merge pull request dotnet/corefx#9446 from davidsh/flow_timeouts
Flow HttpClient timeouts and cancellation to the response stream

Commit migrated from https://github.com/dotnet/corefx/commit/cffe60fcec1f85f755f41562b0c207700fdbc043
2016-06-15 22:36:12 -04:00
Stephen Toub 331ede43ee Flow HttpClient timeouts and cancellation to the response stream
Basically this is the same as PR dotnet/corefx#9102.  We reverted that PR when the
internal ToF tests started failing. But it was determined that the
failure was due to infrastructure which is now fixed via
https://github.com/dotnet/coreclr/pull/5695


Commit migrated from https://github.com/dotnet/corefx/commit/48ab6ce6334db48cc83ddf41bf2a63e45192d2ae
2016-06-15 14:38:43 -07:00
Karthik Rajasekaran d73f6518c3 Update CoreFX tests to compile against a minimum of netstandard1.3 and add supports clauses for tests
CoreFX tests will now compile against netstandard1.3 as references and will now deploy for the platforms listed in their respective supports clause, provided the appropriate TestTFM is passed in.  The supports are fully listed inside runtime.json in the new TestSuite metapackage in buildtools. The tests will default to netcoreapp1.0 as their TestTFM.

CoreFx test projects now utilise a test csproj to pkgproj reference which determine the appropriate compile time and runtime assets needed.

Dependent on https://github.com/dotnet/buildtools/pull/770


Commit migrated from https://github.com/dotnet/corefx/commit/b4841454de7ddcd75e92e2bb24ebb238a82df43f
2016-06-15 11:23:11 -07:00
Stephen Toub 8f623a92be Override HttpContent.CreateContentReadStreamAsync in MultipartContent
MultipartContent doesn't override CreateContentReadStreamAsync.  This means that a ReadAsStreamAsync operation will end up serializing all of the content to a MemoryStream, which can be problematic for very large content, preventing such content from being uploaded with some HttpClientHandlers.  This change overrides CreateContentReadStreamAsync to use a custom stream that delegates to all of the inner streams from each content.


Commit migrated from https://github.com/dotnet/corefx/commit/b1d20b427fb68f468740b5ad55c04d41064e1396
2016-06-14 23:23:47 -04:00
Stephen Toub 0356525238 Updating CoreFx dependencies to rc4-24215-01
Commit migrated from https://github.com/dotnet/corefx/commit/8539c5c0e3fc42084ac06d7e4b6734df7fcf2932
2016-06-14 22:31:09 -04:00
Stephen Toub b47f847ea3 Merge pull request dotnet/corefx#9421 from dotnet-bot/UpdateDependencies20160614071234
Updating CoreFx dependencies to rc4-24214-04

Commit migrated from https://github.com/dotnet/corefx/commit/0747c3a2b3f6fb9859bf85173652d69f56a540d3
2016-06-14 18:42:19 -04:00
Stephen Toub 4641b747a8 Merge pull request dotnet/corefx#9414 from stephentoub/test9357
Add test for posting FormUrlEncodedContent with HttpClient

Commit migrated from https://github.com/dotnet/corefx/commit/56c1611d51121d0e1fe951e68f198cbd1bedea15
2016-06-14 15:24:59 -04:00
dotnet-bot 73b89266d0 Updating CoreFx dependencies to rc4-24214-04
Commit migrated from https://github.com/dotnet/corefx/commit/c7fb2cef475f365a384d53b26d4c5612c91fff62
2016-06-14 19:12:33 +00:00
Stephen Toub eb6984022d Add test for dotnet/corefx#9357
Commit migrated from https://github.com/dotnet/corefx/commit/ab02479780441c1ab1b995e50492c592fbc9f7a9
2016-06-14 11:06:36 -04:00
dotnet-bot 73e2af0256 Updating CoreFx dependencies to rc4-24214-03
Commit migrated from https://github.com/dotnet/corefx/commit/22efb2a5f992c25a9f215a13968d14c6903aa1d4
2016-06-14 13:14:07 +00:00
Stephen Toub 383e5f2e4a Update CoreFX and External Dependencies to 24214-02 and 24214-00
Commit migrated from https://github.com/dotnet/corefx/commit/d5dcad160fbe8b7a8cb4e37cda58b9beac5da47d
2016-06-14 07:14:56 -04:00
dotnet-bot fdc79eb15e Updating CoreFx dependencies to rc4-24213-04
Commit migrated from https://github.com/dotnet/corefx/commit/50ef40f12ed40a7c497169826297ac61a121aa26
2016-06-13 19:18:43 +00:00
dotnet-bot f66c7664ff Updating CoreFx dependencies to rc4-24213-03
Commit migrated from https://github.com/dotnet/corefx/commit/210cf6dd24dac2e501d64079e922c9d9313ab56b
2016-06-13 13:11:54 +00:00
Stephen Toub 1d68eee786 Updating CoreFx dependencies to rc4-24213-02
Commit migrated from https://github.com/dotnet/corefx/commit/05b479256dfa89188c5cd66579114eb21794a6b2
2016-06-13 06:15:41 -04:00
dotnet-bot 246d7a0437 Updating CoreFx dependencies to rc4-24212-04
Commit migrated from https://github.com/dotnet/corefx/commit/a393af011454c8cdfe7c2e7ea2c1c295f8a4d61d
2016-06-12 19:09:29 +00:00
Stephen Toub e04f66a95b Updating CoreFx dependencies to rc4-24212-03
Commit migrated from https://github.com/dotnet/corefx/commit/b2ae3de5c802c7c62a85f342e9510b7e3aeb910a
2016-06-12 10:56:11 -04:00
dotnet-bot eb296c0c86 Updating CoreFx dependencies to rc4-24211-02
Commit migrated from https://github.com/dotnet/corefx/commit/9ee0ac2dee8360086f545ae9b7ebf183312146ea
2016-06-11 07:19:19 +00:00
David Shulman 07871d1746 Merge pull request dotnet/corefx#9179 from justinvp/cookiecomparer
Make the internal CookieComparer class static

Commit migrated from https://github.com/dotnet/corefx/commit/bd1bac7f566cb5e9e984b0b67cdb55dcc1d91d94
2016-06-10 20:21:20 -07:00
Stephen Toub a0cec1f795 Merge pull request dotnet/corefx#9322 from dotnet-bot/UpdateDependencies20160610014414
Updating CoreFx dependencies to rc4-24210-04

Commit migrated from https://github.com/dotnet/corefx/commit/fdba5487475388b48e19820476e25f2466ca80d9
2016-06-10 14:03:30 -04:00
Stephen Toub dccbf3a89d Updating CoreFx dependencies to rc4-24210-04
Commit migrated from https://github.com/dotnet/corefx/commit/3473c3dce764e2aa30497e0476acdac8298822ed
2016-06-10 12:48:41 -04:00
Stephen Toub e7fad1b9dc Fix hanging System.Net.Http test
We've been plagued for the last few weeks by CI jobs on Windows that hang in System.Net.Http.Functional.Tests, causing the whole job to fail after it eventually times out after two hours. I managed to find a CI server that had a process still alive after having experienced the hang and was able to debug it.  The Dispose_DisposingHandlerCancelsActiveOperationsWithoutResponses test is creating three loopback servers and using HttpClient.GetAsync to access each of them.  It's then Disposing of the HttpClient to verify that requests which should have been canceled are canceled.  The problem is that there's a race condition.  We may end up canceling one of the requests before it even gets a chance to connect to the server.  As a result, the server remains stuck in an asynchronous accept on it socket, and at the end of the test, we're waiting for all of the servers to shutdown... deadlock.  The fix is simple: don't wait for the servers... we don't care about their results, and they'll all be torn down when we exit the inner delegate.


Commit migrated from https://github.com/dotnet/corefx/commit/99b7b5a9b9f23e8b94bd8c75ecf86bb71d24b6c4
2016-06-10 11:29:49 -04:00
Stephen Toub 7e6d3a0a5b Merge pull request dotnet/corefx#9316 from dotnet-bot/UpdateDependencies20160610080826
Updating CoreFx dependencies to rc4-24210-03

Commit migrated from https://github.com/dotnet/corefx/commit/d5572dcbd047782c8b1be93c5d729e09d0c2b837
2016-06-10 05:16:26 -04:00
Stephen Toub b4662ed689 Merge pull request dotnet/corefx#9282 from stephentoub/change_curl_seek
Change how request content is read in libcurl

Commit migrated from https://github.com/dotnet/corefx/commit/0606a316743a63b33287247d64382b6f7474b8bc
2016-06-10 05:03:00 -04:00
dotnet-bot 1a3d275bc9 Updating CoreFx dependencies to rc4-24210-03
Commit migrated from https://github.com/dotnet/corefx/commit/2358285c88c2055040b979b87475cdfbc14ada1b
2016-06-10 08:08:26 +00:00