Commit Graph
783 Commits
Author SHA1 Message Date
Stephen Toub 141d10f785 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/6f157355d5d0885a95ab8f4b4b4d00b1223e11c9
2016-11-14 17:04:37 -05:00
Stephen Toub c29c12aecb Fix System.Net.Http.WinHttpHandler build
All of the previous commits were focused on System.Net.Http.  This fixes up the System.Net.Http.WinHttpHandler build to work with the changes.


Commit migrated from https://github.com/dotnet/corefx/commit/035f06ab40dab532080bc5026f7fd92b2c463687
2016-11-14 17:00:02 -05:00
Stephen Toub 1c5bfa45ed Shrink SendRequest state machine by 15%
On 64-bit, lower the size of the SendRequest state machine from 160 bytes to 136 bytes


Commit migrated from https://github.com/dotnet/corefx/commit/449b7b2fb6deb87e55e3688f4480bce96e6d2441
2016-11-14 16:59:26 -05:00
Stephen Toub 56c60f6d03 Use cached StringBuilder for building response headers
Commit migrated from https://github.com/dotnet/corefx/commit/9b734e5ab593b338f7b02de3d4099eaedf4f15be
2016-11-14 16:59:26 -05:00
Stephen Toub 69c44884a9 Remove ReadOnlyStream allocation and shrink response content
Use a custom stream content that doesn't force us to allocate a ReadOnlyStream wrapper, that gives us the CancellationToken-based ctor we need, and that's smaller, without unnecessary fields.


Commit migrated from https://github.com/dotnet/corefx/commit/786e23394e997bd82f0ff9e657f5ea9ac002901c
2016-11-14 16:59:26 -05:00
Stephen Toub 978bb4ca4f Significantly reduce Task-based allocations in request lifecycle
New TaskCompletionSource/Task objects are being used for every stage of the lifecycle.  We can instead reuse a single awaitable object to avoid most of those costs.  We can then also add a CopyToAsync implementation to the response stream, which further reduces those costs (CopyToAsync is used by HttpContent, so benefits here accrue not only to custom user code but also the rest of the implementation).


Commit migrated from https://github.com/dotnet/corefx/commit/48214d726de9e1a150fe5b041832c41655b69815
2016-11-14 16:59:26 -05:00
Stephen Toub 2b4a8365d3 Lazily-allocate the TransportContext
It's only needed in some situations, so don't allocate it in others.


Commit migrated from https://github.com/dotnet/corefx/commit/832d4152e4f97234937a49ec2c2ebf74f1d275c2
2016-11-14 16:59:26 -05:00
Stephen Toub eb38e188e3 Avoid allocating a lock object
Just lock on the state object itself.


Commit migrated from https://github.com/dotnet/corefx/commit/fe7555e06b6e89ef541da5046723e2e0fb88c712
2016-11-14 16:59:26 -05:00
Stephen Toub ed1fd29e3a Use ArrayPool to avoid a per-response char[] allocation
We currently allocate a new char[] to hold all of the response headers.  Use ArrayPool instead.


Commit migrated from https://github.com/dotnet/corefx/commit/e3dfaf26f6f75a71916d78b374496704fffdf5a2
2016-11-14 16:59:26 -05:00
Stephen Toub 6a11e33c9d Avoid cookie-related allocations when there aren't any cookies
Commit migrated from https://github.com/dotnet/corefx/commit/8d9e30248ec761f81a501fbdc8212538aae2d9bb
2016-11-14 16:58:25 -05:00
Stephen Toub 3a45bc1304 Add a reusable awaitable data structure
Like TaskCompletionSource, this RendezvousAwaitable allows for a result or error to be passed from a producer to a consumer, with a consumer awaiting the object and a producer setting the result/error into it.  It may be reused any number of times (serially), avoiding having to allocate a new TaskCompletionSource/Task for each operation.


Commit migrated from https://github.com/dotnet/corefx/commit/43437d20c4523d15df818fde5ccbc64282244fe1
2016-11-14 16:58:25 -05:00
dotnet-bot bb01d482d2 Update CoreFx, ProjectNTfs to beta-24714-01, beta-24714-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/3342536d369d922f14cc1a9c0fb91b4440a6967e
2016-11-14 15:46:09 +00:00
dotnet-bot a02764567f Update CoreFx to beta-24711-02
Commit migrated from https://github.com/dotnet/corefx/commit/3709a83afb9ffb8aa05b6c6f5561859527226595
2016-11-11 15:52:34 +00:00
dotnet-bot b9b36cbb7a Update CoreFx, External, ProjectNTfs to beta-24711-01, beta-24711-00, beta-24711-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/2ab7ba374f98bb0c3785435169d9b568c5f24eba
2016-11-11 06:19:20 +00:00
John Chen (CLR) e6544e45f9 Reorganize DLL imports
Removed obsolete constants from Interop.Libraries.cs, and moved
files under src/Common/src/Interop/Windows to proper locations.


Commit migrated from https://github.com/dotnet/corefx/commit/aff71a53a57a39cbcaa7110c7dc1124f0700c13d
2016-11-10 16:04:46 -08:00
dotnet-bot d1fb8ddc0f Update CoreFx, External, ProjectNTfs to beta-24710-01, beta-24710-00, beta-24710-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/0a2361383fda2720c5eada8c80d24850a9d61246
2016-11-10 14:31:27 -08:00
dotnet-bot c5bd931c2d Update CoreFx to beta-24709-02
Commit migrated from https://github.com/dotnet/corefx/commit/68a1670fc7b9c9419f5d3100ac9a4347874aeef8
2016-11-09 15:38:49 +00:00
dotnet-bot d6f29b0517 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24709-02, beta-24709-01, beta-24709-00, beta-24709-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/8a5167a13e1ae72cff71285c49f5f84e10a64248
2016-11-09 09:19:32 +00:00
dotnet-bot c561086403 Update CoreClr, CoreFx to beta-24709-01, beta-24708-05, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/bafbeec4841285834d31bee295c225a61de2b780
2016-11-09 01:10:38 +00:00
Stephen Toub 27794c3e5c Update corefx to beta-24708-03
Commit migrated from https://github.com/dotnet/corefx/commit/9f9c2885208315215b7e328ea399f13c83d1b8a7
2016-11-08 17:10:15 -05:00
dotnet-bot b740f1d2bd Update CoreClr, CoreFx, External, ProjectNTfs to beta-24708-02, beta-24707-01, beta-24708-00, beta-24708-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b255d0bf4df94eb383c1bb4b42b1bfe9b64f3238
2016-11-08 17:07:45 -05:00
dotnet-bot d63a7b41df Update CoreFx to beta-24705-01
Commit migrated from https://github.com/dotnet/corefx/commit/c7603507fe200426130f10d6b2cc67dfeda2c83f
2016-11-05 02:22:03 +00:00
dotnet-bot 540789c36c Update CoreClr, CoreFx, External, ProjectNTfs to beta-24704-04, beta-24704-03, beta-24704-00, beta-24704-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d75d49704cffb9652304a357750d7f3f357be6fc
2016-11-05 00:21:20 +00:00
Stephen Toub 4d8438fb1a Merge pull request dotnet/corefx#13316 from joperezr/UpdateCorefxDependencies
Updating corefx versions to beta-24703-01

Commit migrated from https://github.com/dotnet/corefx/commit/23c2758bf8fbecf2e0758b4cc792f3b75d10766b
2016-11-03 15:02:08 -04:00
Jose Perez Rodriguez 2db115c87d Updating corefx versions to beta-24703-01
Commit migrated from https://github.com/dotnet/corefx/commit/39b5977106283eb0017dbc43af7f4d6b195753b1
2016-11-03 10:23:38 -07:00
Stephen Toub 5c80441a2c More aggressively clean up disposable resource in Http tests
Most of these likely don't matter, but some of these can be keeping alive the underlying connections associated with the HttpClient instance, and it's possible that can lead to more resource contention / exhaustion.


Commit migrated from https://github.com/dotnet/corefx/commit/ec47d4e19f3215f75e652e8e5ff61cc4c253c056
2016-11-03 11:18:27 -04:00
Eric Mellino b22982fb03 Merge pull request dotnet/corefx#13233 from mellinoe/fedora-24
Add full support build for test runs on Fedora 24

Commit migrated from https://github.com/dotnet/corefx/commit/31cb259750808d9f2c1e4788f4bf8a2ea1ab3695
2016-11-02 12:10:39 -07:00
Stephen Toub 183b074730 Fix HttpVersion conflicts
Added an HttpVersionInternal to be used by the higher-stack libraries that need things beyond HttpVersion.Version10/Version11 and/or that have builds targeting versioning of System.Net.Primitives that doesn't have the newly exposed HttpVersion.  This can be removed once all of those libraries have all of their builds targeting the updated primitives lib.


Commit migrated from https://github.com/dotnet/corefx/commit/119ae03ddc2ce49511f10b02fb39818aab0aa577
2016-11-01 19:42:30 -04:00
Stephen Toub 4ee10f7b6c Update CoreFx, ProjectNTfs to beta-24701-01, beta-24701-00, respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/1b2b88d11c6b0d226481c96b1a88d20bb8cefaf9
2016-11-01 19:42:30 -04:00
Eric Mellino 6a3b8fa4fd Support full test builds on fedora 24
Commit migrated from https://github.com/dotnet/corefx/commit/f3ae1c1cea4709252b48179fd1eed5a18740d8fc
2016-11-01 22:56:10 +00:00
Stephen Toub 5f0b53cb3c Update CoreFx to beta-24629-01 (master)
Commit migrated from https://github.com/dotnet/corefx/commit/63a1dbe34233c086f7fc6d28b1fefecfefc822ed
2016-10-29 22:41:56 -04:00
dotnet-bot ad2c08f972 Update CoreFx to beta-24628-03
Commit migrated from https://github.com/dotnet/corefx/commit/e634b174854638f226c81ebd5a2b6d22afca83de
2016-10-28 19:01:25 +00:00
dotnet-bot 519246eb66 Update CoreClr, CoreFx to beta-24628-03, beta-24628-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/56c61a5a1158ef9f1c84c87442f39015d9042491
2016-10-28 16:27:01 +00:00
dotnet-bot 5eb2424d89 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24628-02, beta-24628-01, beta-24628-00, beta-24628-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/56b92839e58ab41582e98eaf87452ec4b50712b4
2016-10-28 09:16:27 +00:00
dotnet-bot 4ed327f131 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24627-05, beta-24627-05, beta-24627-00, beta-24627-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b030c0a58466c70ca34b56933903b31e580e6189
2016-10-27 22:28:54 +00:00
Jose Perez Rodriguez c794456414 Re-add test configurations that were not being tested by CI anymore
Commit migrated from https://github.com/dotnet/corefx/commit/f900522981c001eb02407c7083eb7d3ee3831dbf
2016-10-27 11:27:08 -07:00
dotnet-bot a196fb6572 Update CoreFx to beta-24626-02
Commit migrated from https://github.com/dotnet/corefx/commit/ffd454cef1f7dd4a2f6969747cf45a4729e6387c
2016-10-26 14:46:03 +00:00
dotnet-bot de5dd7cba0 Update CoreClr, CoreFx, ProjectNTfs to beta-24626-01, beta-24625-02, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ff859b462ada317c02c96b93918ec0e2d072459e
2016-10-26 00:20:25 +00:00
Matt Galbraith 499ac922d7 Update Microsoft.DotNet.BuildTools.TestSuite and Microsoft.xunit.netcore.extensions
Commit migrated from https://github.com/dotnet/corefx/commit/262cef73a95a6f743ce19abc0b42a80ff715ac52
2016-10-25 10:47:06 -07:00
dotnet-bot b943e5d281 Update CoreClr, CoreFx, External to beta-24625-02, beta-24625-01, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/e1bdcc213a47f4761a6a46e8e0d612d7bc237c9a
2016-10-25 08:19:47 +00:00
Jose Perez Rodriguez 132e478c7b Updating Corefx versions to beta-24624-01
Commit migrated from https://github.com/dotnet/corefx/commit/cd40177af397e309c41f2bbcec007e21761bb688
2016-10-24 12:01:45 -07:00
Matt Galbraith 8cdd4afd6d A couple test fixes that fell out of recent bugs and package restore improvements:
Fix Xunit return code / file creation behavior:
- Update Xunit.console.netcore - now has same behavior as 2.2.0 Desktop version for exit codes
- Update Microsoft.DotNet.BUildTools to 1.0.26-prerelease-00921-01, to pick up a runner script that can honor the exit code from above instead of hide it.

Fix UWP tests:
- Update Microsoft.DotNet.BuildTools.TestSuite  1.0.0-prerelease-00921-01 - Pick up native compilation package
- Update microsoft.xunit.runner.uwp to 1.0.3-prerelease-00921-01 - Various fixes included in PR
- Microsoft.xunit.netcore.extensions to 1.0.0-prerelease-00920-01 - Same


Commit migrated from https://github.com/dotnet/corefx/commit/95f0052492a5a1086e2b23e209fd6eaa95334b3b
2016-10-24 09:28:51 -07:00
Stephen Toub 344ae45288 Update CoreFx dependencies to beta-24623-01
Commit migrated from https://github.com/dotnet/corefx/commit/617811c779e36848fb1af4c2e8d8b3b1dba42e83
2016-10-23 11:50:14 -04:00
Eric St. John 4a6c9bbb81 Update all projects to last stable packages
And remove imports.

Now that we have netstandard packages that support all targets we should
use them.  This means we don't need imports.

I opted to use the stable packages rather than the LKG ones since this
will reduce churn in the product assemblies.

This has the added benefit of reducing download time for the repo.


Commit migrated from https://github.com/dotnet/corefx/commit/a330f3651c999b241d55ca25d9baa7fb0f247c5c
2016-10-21 06:32:53 -07:00
Matt Galbraith 960e2fba57 Merge pull request dotnet/corefx#12822 from MattGal/UpdateBuildToolsAndTestSuite
Putting back net46 specific dependencies (for Desktop Runs) 

Commit migrated from https://github.com/dotnet/corefx/commit/0578ba76212ab4eae6c8947f86069e6823f841c1
2016-10-20 11:23:43 -07:00
Stephen Toub fc416399f6 Update CoreFx to beta-24619-02 (master)
Commit migrated from https://github.com/dotnet/corefx/commit/85567505126195558e104adec718be1d6325e43f
2016-10-20 00:13:39 -04:00
Matt Galbraith d7565e6959 Putting back net46 specific dependencies (for Desktop Runs) by updating to fixed TestSuite and updating BuildToolsVersion (For publishtest.targets)
Commit migrated from https://github.com/dotnet/corefx/commit/09b70db52af43e3062055d6cb4e0f00615a9ccdd
2016-10-19 21:13:29 -07:00
Karthik Rajasekaran 9255a2e649 Combine test dependencies into a common project.json.
Restore this common project.json upfront to improve sync time and avoid download contention from nuget.


Commit migrated from https://github.com/dotnet/corefx/commit/654f5548f946659c694d110a4bbce8aa33f1a7a1
2016-10-18 11:39:53 -07:00
dotnet-bot 94f229c6a7 Update CoreClr, CoreFx to beta-24617-03, beta-24617-03, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/4c6df2edbad3b5d8ec3914c0366f80ebb73f7c12
2016-10-18 08:43:24 -04:00
dotnet-bot 7b31a1e04a Update CoreClr, CoreFx, External to beta-24615-02, beta-24615-03, beta-24614-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/025cec5bf1e82980a77e473f2e5d599ffd60af49
2016-10-15 08:33:01 +00:00