Commit Graph
434 Commits
Author SHA1 Message Date
Eric Eilebrecht d1fa125555 Reference dotnet/corefx#7879 from TODO comment
Commit migrated from https://github.com/dotnet/corefx/commit/7539d1c29250dc84c4d523476fb47d9aa98e18e1
2016-04-20 10:03:36 -07:00
Eric Eilebrecht ad428054f8 Reference dotnet/corefx#5715 from TODO comment
Commit migrated from https://github.com/dotnet/corefx/commit/90eed038d74ea4d04ff0cf0803bdc3f2009252c6
2016-04-20 10:03:35 -07:00
Eric Eilebrecht a35a6ec67c Reference dotnet/corefx#7878 from TODO comment
Commit migrated from https://github.com/dotnet/corefx/commit/9bcfa48fb51620287e65b40d8c1f31a540605bd7
2016-04-20 10:03:33 -07:00
Eric Eilebrecht 7a387e79fa Reference dotnet/corefx#7877 from TODO comment
Commit migrated from https://github.com/dotnet/corefx/commit/48ebd92b72f1cdfa1322fcd2ddde41339f0fccf9
2016-04-20 10:03:32 -07:00
Eric Eilebrecht 7b38dcc9b2 Remove "TODO" from some comments
These are not actionable, but rather are just implementation notes.


Commit migrated from https://github.com/dotnet/corefx/commit/df5bc978c651d8a1130b7b59a26408320c4b7325
2016-04-20 10:03:00 -07:00
Eric Eilebrecht 1fd51f11d8 Reference dotnet/corefx#7856 from TODO comment
Commit migrated from https://github.com/dotnet/corefx/commit/9cd0bbb42551db664d006730df1426e39df2ee05
2016-04-20 10:02:57 -07:00
stephentoub 67f0b405fa Delete ConnectTimeout TODO from CurlHandler
Either this property will be exposed and the value will remain infinite, or the property won't be exposed and this won't matter (hopefully the former).  Regardless, the TODO is now stale.  Removing.


Commit migrated from https://github.com/dotnet/corefx/commit/7ec27af0d28bb30da8008482fe50fdb0b128f19d
2016-04-20 00:29:01 -04:00
dotnet-bot cdbab74187 Updating CoreFX dependencies to rc3-24018-00
Commit migrated from https://github.com/dotnet/corefx/commit/b2e960386a786002b5cb724e64814dbb90eb4af4
2016-04-18 17:40:51 +00:00
David Shulman 28e1f8bf95 Merge pull request dotnet/corefx#7747 from StephenBonikowsky/patch-2
Find test builds files deeper in file structure.

Commit migrated from https://github.com/dotnet/corefx/commit/0d33c8cc3d5a730b2508e294b209fa666dc6cf55
2016-04-15 14:49:34 -07:00
Eric StJohn b64b9e224b Merge pull request dotnet/corefx#7772 from ericstj/harvestInternalPackageDeps
Harvest internal package deps

Commit migrated from https://github.com/dotnet/corefx/commit/f90ee43bb5b0e7b48b5d88a096747901cfc52ea9
2016-04-15 08:59:15 -07:00
Eric St. John abef5ac8e4 Remove internal project package references
These are no longer needed with the latest buildtools.  They'll be
harvested just like other dependencies.


Commit migrated from https://github.com/dotnet/corefx/commit/3a9ce15074ced337f75419aa88a263e6cb325b5f
2016-04-15 07:05:02 -07:00
dotnet-bot 03fd4d1c42 Updating CoreFX dependencies to rc3-24015-00
Commit migrated from https://github.com/dotnet/corefx/commit/a70774dac4088849551525d3ddd750d4e0cc4fbc
2016-04-15 06:40:27 +00:00
Stephen Bonikowsky ecd4e3032a Find test builds files deeper in file structure.
*

 In WCF repo many of our test projects are more than one level below the 'tests' directory.

*
If this doesn't break anything in corefx could we take this change?

* Amending to remove corefx\src\System.Net.Sockets\tests\PerformanceTests\System.Net.Sockets.Async.Performance.Tests.builds

* Amending again with more test .builds files that needed to be removed.


Commit migrated from https://github.com/dotnet/corefx/commit/8cac0d4afab96e15837818ca1abfbd9068008458
2016-04-14 18:20:32 -07:00
David Shulman 5d5c5fb77d Add Http redirect tests
Now that the Azure test endpoint has been updated, we can add more redirect tests that use different redirect status codes.

It isn't necessary to modify every existing test to use different codes. But I modified the important ones especially those using credentials.

Fixes dotnet/corefx#7505


Commit migrated from https://github.com/dotnet/corefx/commit/507901ff79c58c81853dd33f511921019ac62f04
2016-04-14 14:58:07 -07:00
dotnet-bot 875bffd0a5 Updating CoreFX dependencies to rc3-24014-01
Commit migrated from https://github.com/dotnet/corefx/commit/0c97843892b744f01ef65a5684a911f50a38ed93
2016-04-14 06:39:49 +00:00
Eric St. John 69f5754740 Fix HttpClient dependencies on desktop
The latest changes to make HttpClient an OOB implementation on desktop
were not getting the correct dependency set.  This has to do with the
the way that EnsureOOBFrameworks evaluates assets to duplicate.  It does
so by seeing if any placeholders are obscuring the netstandard asset and
copying the netstandard asset if that is the case.  This worked fine for
the reference assembly, but not the implementation since it wasn't
actually obscured.  The result was that NuGet selects the correct
assets, but is missing implementation dependencies.

For now I'm fixing this by changing the package structure to explicitly
break out the net46 implementations into their own folders.  This is
essentially what we were trying to make happen automatically with
EnsureOOBFrameworks.

Longer term we might want to refactor how we generate dependencies
to do an actual nuget-asset selection in order to harvest from the
actual assemblies that NuGet will choose.

For now I'm also working around the problem that the unix shims are
being referenced everywhere even though they're only needed for Unix.

There's still a problem with this package in that we have two different
netstandard dependency groups (one meant for Windows and one meant for
Unix) but because we can't express that in a fat package the Unix one
will win, even on a windows machine, if the target framework supports
NETStandard1.4 or higher.  This doesn't cause a problem at the moment
because the unix implementation is using a superset of the Windows
dependencies but we need to see about how to better handle
in lieu of the NuGet feature for RID-specific dependencies.


Commit migrated from https://github.com/dotnet/corefx/commit/0a8c4fb115246f80bcc86ddb88797bfd1c7271f7
2016-04-13 13:32:47 -07:00
David Shulman dbbd669af6 Initial System.Net.Http 4.1 contract
To support important customer scenarios for CoreFx RTM, we will be updating the System.Net.Http contract from 4.0 to 4.1. We are focusing on HttpClientHandler enhancements.

We will be submitting the final proposed list of additions as part of issue dotnet/corefx#7623. As part of updating the contract to 4.1, we are also OOB'ing the Desktop (net46 Windows) implementation so that the package won't be a facade over Desktop but rather a full implementation. This is possible since System.Net.Http has always been a standalone dll in the .NET Framework. As part of this, we are changing the implementation for Desktop from the legacy HttpWebRequest sockets stack to the WinHttpHandler stack based on native WinHTTP. This will give us a good path forward as WinHttpHandler stack will be getting HTTP/2.0 support with newer versions of Windows 10.

This initial PR has a few API additions that we are definitely going to be adding. It's important to get these changes into the builds so that we can fully bake the OOB Http.dll assembly on all the platforms and continue package testing.

There is an existing System.Net.Http.WebRequestHandler class in the .NET Framework located in System.Net.Http.WebRequest.dll. This class is a subclass of HttpClientHandler. Due to this, we are being careful not to cause collisions with some of these added properties. WebRequestHandler has a 'ClientCertificates' property and a 'ServerCertificateValidationCallback' property. So, we are aligning/renaming the properties as we add them to HttpClientHandler OOB assembly. This may get altered slightly as we finalize the 4.1 System.Net.Http API.


Commit migrated from https://github.com/dotnet/corefx/commit/97c940eec1f6afe3e4af31e72d79c3a11e7b1ff1
2016-04-13 09:50:34 -07:00
Eric StJohn f0dd5a436b Merge pull request dotnet/corefx#7665 from ericstj/pcl-inbox
Add support for PCL profiles

Commit migrated from https://github.com/dotnet/corefx/commit/fdae434e8a639fdd0227068f6469c116146d9b44
2016-04-13 06:36:33 -07:00
dotnet-bot ea45391f54 Updating CoreFX dependencies to rc3-24013-00
Commit migrated from https://github.com/dotnet/corefx/commit/32d2d84ff16efa0ed04dd2780c62db36bbf0bf01
2016-04-13 06:13:25 +00:00
Eric St. John 608e8a43cd Add support for PCL profiles
Adds support for profile-based PCL using placeholders.


Commit migrated from https://github.com/dotnet/corefx/commit/5853b8f459c5b07d543274cd16137375970356ae
2016-04-12 14:49:26 -07:00
Eric Mellino 3c5e57e248 Merge pull request dotnet/corefx#7651 from mellinoe/test-runtime-projectref-rebase2
Overhaul usage of test-runtime, Update buildtools

Commit migrated from https://github.com/dotnet/corefx/commit/9f90fdbdb3cc623dda7dc89f749172f619d0a767
2016-04-12 14:47:07 -07:00
Stephen Toub 061cdacc56 Merge pull request dotnet/corefx#7681 from stephentoub/fix_connecttimeout_test
Fix ConnectTimeout_TimesOut_Throws test

Commit migrated from https://github.com/dotnet/corefx/commit/20d6f81f7d03202cf62dc48e7ba42ea67a18d191
2016-04-12 17:41:37 -04:00
stephentoub 716f5ee544 Fix ConnectTimeout_TimesOut_Throws test
This test wasn't actually running because it was incorrectly annotated as a [Theory] but without any data.  When changed to be a [Fact], it failed because the test depends on the Socket's listening backlog being filled so that a subsequent connect will time out, but Listen(1) doesn't actually force the OS to use a queue of max size of 1, its just advisory.  The fix is to flood the server with requests that don't get accepted, filling the listen queue.


Commit migrated from https://github.com/dotnet/corefx/commit/883a32630a21c83bb91735cebf1d87c76691bd7d
2016-04-12 13:55:55 -04:00
Eric Mellino f57a495784 Overhaul usage of test-runtime.
This change uses some features available in an updated version of
buildtools. Instead of resolving the test-runtime for each of our test
projects as a separate step, we will now add a "reference" to it from the
project.json of each test project. This will allow us to resolve the nuget
assets from both it and the test project at the same time. This will be
more robust than our current process, which is very fragile and
error-prone.

The above is made possible by an updated version of
"PrereleaseResolveNuGetPackageAssets", which is the buildtools task
responsible for resolving test assets from nuget packages. This task also
has a lot of additional validation, which triggers a lot of warnings in
corefx. I've made various changes to csproj's and to project.json's around
the repository in order to satisfy those warnings.


Commit migrated from https://github.com/dotnet/corefx/commit/622ee8f512497fc07621de15e41c6bd575f387c9
2016-04-12 07:12:36 -07:00
dotnet-bot 203d37ef1e Updating CoreFX dependencies to rc3-24012-00
Commit migrated from https://github.com/dotnet/corefx/commit/f89a8267334562ab363ce19d4a2bfa0618bb1f00
2016-04-12 05:34:15 +00:00
stephentoub 014be97bdf Improve HttpContent tests
The tests are doing work in a way where if an async exception is changed to be synchronous, it likely goes unnoticed, and vice versa.  Tightening the tests.


Commit migrated from https://github.com/dotnet/corefx/commit/448a201f339137356e76bdb105916ea7459341d6
2016-04-11 21:59:22 -04:00
stephentoub cde2f4498a Fix HttpContent.CopyToAsync to return rather than throw exception
I broke this as part of my async/await refactorings.  It was supposed to return a Task.FromException but instead was throwing.


Commit migrated from https://github.com/dotnet/corefx/commit/e17479f350c54ef9e54524782c53bdbee7f9f1b6
2016-04-11 21:57:45 -04:00
dotnet-bot 83f02c753f Updating CoreFX dependencies to rc3-24011-00
Commit migrated from https://github.com/dotnet/corefx/commit/406378b88f0485b549ec2b8c242c79329a5b3ef5
2016-04-11 16:13:03 +00:00
dotnet-bot 6883e89fc3 Updating CoreFX dependencies to rc3-24008-00
Commit migrated from https://github.com/dotnet/corefx/commit/30b74738cdac9c75a2dd165d339f206b1070f3cd
2016-04-08 06:40:37 +00:00
stephentoub 1ab13b9661 Address PR feedback
And some additional cleanup, including removing a Tuple allocation when starting a new worker and fixing up some Debug.Asserts to be more informative.


Commit migrated from https://github.com/dotnet/corefx/commit/274feb64c9e91539f4b5c912b762ae337e2eb7a5
2016-04-07 19:38:42 -04:00
stephentoub ea83470915 Improve reliability of CurlHandler MultiAgent worker
If something unexpectedly goes wrong in our worker loop, and in particular when queueing a replacement worker, we may end up leaving a request sitting in the request queue with no one to process it.  This commit ensures that if something does go horribly wrong, the agent is left in a state where subsequent incoming requests can still kick off another worker, and in the meantime any pending requests in the queue are failed, so that code blocking on them doesn't simply hang.

As I was looking at this and some of our dispose usage, I also cleaned up a few places that could be simplified using the C# 6 ?. syntax.


Commit migrated from https://github.com/dotnet/corefx/commit/ad4afcf61aa62aa85c26b2c058953fe18328ffd4
2016-04-07 17:28:16 -04:00
stephentoub b9c430844f Only call curl_multi_wait if there are active operations
The CurlHandler work is sometimes hitting brief pauses unnecessary, where it finishes processing the last active request and then calls curl_multi_wait to wait for more work to do.  This is purely wasteful and can be skipped when we know there aren't any more active operations.


Commit migrated from https://github.com/dotnet/corefx/commit/8075d3a1b54121b9f656e033fe6308de05eb7381
2016-04-07 17:28:16 -04:00
stephentoub 317c18111d Extend DNS cache timeout in CurlHandler
Now that we're allowing the multi handle to live for as long as the CurlHandler, the DNS cache timeout starts to matter much more.  libcurl will cache the results of DNS lookups, and by default will timeout entries after 1 minute.  Our Windows implementation defaults to 10 minutes, so I'm extending our Unix implementation to match that.


Commit migrated from https://github.com/dotnet/corefx/commit/184792734ebb89d95425e37c7d1631a84e05e624
2016-04-07 17:28:16 -04:00
stephentoub 8197041ce0 Match SafeCurlMultiHandle lifetime to its MultiAgent
Today each time we spin up a worker in CurlHandler, we create a new SafeCurlMultiHandle, use it for the lifetime of that worker, and then when the worker goes away, the multi handle is torn down. This was done for simplicity of resource management, but it also leads to significant overheads due to everything that libcurl caches associated with the multi handle, e.g. when the multi handle goes away, so does it connection cache, its DNS cache, etc.  This commit addresses that by extending the lifetime of the multi handle to match that of the CurlHandler.  We still lazily create the handle when the first worker is spun up, but then we keep it alive until the handler is disposed.  As before, we ensure that as long as a worker is running, the multi handle will be kept alive, even if the handler is disposed.


Commit migrated from https://github.com/dotnet/corefx/commit/8d911b76c2ba05eb1ef22cebd6fef5cad2a21893
2016-04-07 17:28:16 -04:00
dotnet-bot 0f0193e356 Updating CoreFX dependencies to rc3-24007-00
Commit migrated from https://github.com/dotnet/corefx/commit/d9fdf25de0e1cf35219a26d4f840302e5379f292
2016-04-07 05:37:12 +00:00
Stephen Toub d3980a698e Merge pull request dotnet/corefx#7523 from ellismg/run-tests
Remove "UnsupportedPlatforms" metadata

Commit migrated from https://github.com/dotnet/corefx/commit/0cdc8e39f80a749bfa25eb559ab014be4f7ec557
2016-04-06 09:21:15 -04:00
dotnet-bot be7ca463ae Updating CoreFX dependencies to rc3-24006-00
Commit migrated from https://github.com/dotnet/corefx/commit/aff79bf3fa8ce8c13b6084d82aca30e534142b81
2016-04-06 05:21:19 +00:00
Matt Ellis e631e1c680 Remove UnsupportedPlatforms metadata
Commit migrated from https://github.com/dotnet/corefx/commit/f5252c0c0d19622132e0edcf0b64783b798e3bbf
2016-04-05 14:38:52 -07:00
Matt Ellis 68e4373e9a Reconsile .builds and UnsupportedPlatform metadata
There were a handful of test projects that just didn't have .builds
files and some other cases where the data in the .builds file did not
match what was in the UnsupportedPlatforms metadata.

Some of the projects said the tests were unsupported on FreeBSD and
nowhere else. Given that these tests should most likely be supported on
FreeBSD (given that OSX and Linux both supported them), I've not moved
that logic into the .builds files.

If there ends up being a specific set of tests that the FreeBSD port
team wants to disable long term, they can add .builds metadata as they
see fit.


Commit migrated from https://github.com/dotnet/corefx/commit/836c6f12e1a05749d7d5bf27d02bd28f98eb76aa
2016-04-05 11:51:49 -07:00
stephentoub b559a6d703 Change ConnectTimeout default back to infinite
We'll keep it as infinite until we determine how this property is being exposed.  Otherwise, we're overriding the HttpClient.Timeout without giving a way to control it.


Commit migrated from https://github.com/dotnet/corefx/commit/dd3426f7b3cc4ef48b698c252acd16bec98f2e6f
2016-04-05 09:55:52 -04:00
stephentoub 8b16b341a4 Add CurlHandler.MaxResponseHeadersLength
Adds the MaxResponseHeadersLength property.


Commit migrated from https://github.com/dotnet/corefx/commit/8840bc7b3961cbaae547da068bd47d452a8a5dfe
2016-04-05 09:53:41 -04:00
Stephen Toub 7557aa945c Merge pull request dotnet/corefx#7510 from dotnet-bot/UpdateDependencies20160405051812
Updating CoreFX dependencies to rc3-24005-00

Commit migrated from https://github.com/dotnet/corefx/commit/92c2ebd01c926e4d63c27d2efbdc51b2141199e1
2016-04-05 07:43:33 -04:00
dotnet-bot 8c6d7acd5d Updating CoreFX dependencies to rc3-24005-00
Commit migrated from https://github.com/dotnet/corefx/commit/afbf526ac0fae250fc47623f2c43d2caa1abb803
2016-04-05 06:23:55 -04:00
stephentoub aba16573e8 Address PR feedback and fix test
Commit migrated from https://github.com/dotnet/corefx/commit/9854f2ac6fc75c67b4e414783a08067f8e2cd782
2016-04-04 22:30:28 -04:00
stephentoub bf66904b51 Add CurlHandler.MaxConnectionsPerServer option
Adds MaxConnectionsPerServer to CurlHandler.


Commit migrated from https://github.com/dotnet/corefx/commit/cf89034e4425fcd5bc4d00819e29c8c06a47d954
2016-04-04 22:18:07 -04:00
Stephen Toub 8f452c4b3c Merge pull request dotnet/corefx#7502 from dotnet-bot/UpdateDependencies20160404102117
Updating CoreFX dependencies to rc3-24004-00

Commit migrated from https://github.com/dotnet/corefx/commit/a2443bcbe3aa410007c1f1fc4f2c4394e5ce189e
2016-04-04 21:56:26 -04:00
Stephen Toub 44b8eb2705 Merge pull request dotnet/corefx#7462 from stephentoub/curl_contentlength
Fix CurlHandler Content-Length handling on redirects

Commit migrated from https://github.com/dotnet/corefx/commit/8992e73cf1bf09f93cd65ed2b0598c2508afa9e1
2016-04-04 20:23:12 -04:00
dotnet-bot 9f65b1e1ef Updating CoreFX dependencies to rc3-24004-00
Commit migrated from https://github.com/dotnet/corefx/commit/9fd2c8863f2be58ee5d1431f0c658de61e991551
2016-04-04 20:19:10 -04:00
Stephen Toub 4b74e9a08a Merge pull request dotnet/corefx#7503 from stephentoub/curlhandler_defaultproxycredentials
Add CurlHandler.DefaultProxyCredentials

Commit migrated from https://github.com/dotnet/corefx/commit/4bd8d0fcacce9a49a44c9b32022e892c109c7e15
2016-04-04 20:08:20 -04:00
stephentoub 15145110b1 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/d6ec5160a2112fcc0b28ceecc89b678c28b66ff8
2016-04-04 19:06:36 -04:00