Commit Graph
783 Commits
Author SHA1 Message Date
Davis Goodin 1418be0568 Upgrade CoreFX version to rc4-24201-04 from the build pipeline.
Commit migrated from https://github.com/dotnet/corefx/commit/7ce67d490263f936fd093b70e41a010d9be6a970
2016-06-01 13:53:46 -05:00
Davis Goodin 840b837f27 Upgrade non-CoreFX dependencies to rc4-24201-00 from TFS.
Commit migrated from https://github.com/dotnet/corefx/commit/f835dc7a19fa5f9ab7de163ecc3202a65ac2414a
2016-06-01 11:40:41 -05:00
David Shulman 3b73dc71a5 Merge pull request dotnet/corefx#8996 from davidsh/requeststate_leak
Fix some memory leaks in WinHttpRequestState

Commit migrated from https://github.com/dotnet/corefx/commit/cf0f5bf67212aabdfae216fac09081319c00fa18
2016-06-01 06:56:20 -07:00
Matt Ellis 94c58f546c Use correct openSUSE RID
When I added the rid, I forgot to append the -x64 part, which prevented
the openSUSE build from restoring a runtime, since that part is platform
specific.


Commit migrated from https://github.com/dotnet/corefx/commit/d02e47ec2d44fae9d45d29d49f356199ed59b406
2016-05-31 17:52:15 -07:00
David Shulman bc6327039d Fix WinHttpHandler unit tests
Commit migrated from https://github.com/dotnet/corefx/commit/07679bea51d849f9545894df805e8b3051e0f326
2016-05-31 16:20:03 -07:00
dotnet-bot cfde5f8d34 Updating CoreFX dependencies to rc4-24131-00
Commit migrated from https://github.com/dotnet/corefx/commit/7a16fac72dca8b3442e4425896593a0d24fd0fd2
2016-05-31 06:57:39 +00:00
dotnet-bot f0fa9faf0b Updating CoreFX dependencies to rc4-24127-00
Commit migrated from https://github.com/dotnet/corefx/commit/9f0469d8011336f7bf60365b017dcbe7df537dc0
2016-05-27 06:49:24 +00:00
David Shulman 9d66f3ab45 Fix possible memory leaks in WinHttpRequestState
Dispose request handle as soon as possible if errors happen during
SendAsync.

Clear cancellation token in request state object

Pin/unpin at the proper time


Commit migrated from https://github.com/dotnet/corefx/commit/eeb9ab24fb5ed384e90cc821c31f2543f49d2f3b
2016-05-26 13:59:16 -07:00
Matt Ellis 1c7fd4103c Add additonal runtimes
Commit migrated from https://github.com/dotnet/corefx/commit/3ce0367e0f62cdd71aa4368abca30658b315079d
2016-05-25 23:23:02 -07:00
dotnet-bot 91d532f5fc Updating CoreFX dependencies to rc4-24126-00
Commit migrated from https://github.com/dotnet/corefx/commit/1a374cac6178651a21298020b2b3d6eb897d1837
2016-05-26 05:46:42 +00:00
dotnet-bot 032dea8c8b Updating CoreFX dependencies to rc4-24125-00
Commit migrated from https://github.com/dotnet/corefx/commit/9cd447dda0dfa473fb814dd6a3a1504764fa7bf4
2016-05-25 13:52:14 -07:00
Eric St. John 5a444416fd Update tests to use NETCoreApp1.0 moniker
Requires https://github.com/dotnet/buildtools/pull/751

This makes all the tests resolve using NETCoreApp1.0 instead of
DNXCore50.  I've removed the netstandard1.6 import since that is no
longer needed.  I've also removed the workarounds from tests that were
targeting netcoreapp1.0 on their own.  For restore compat I've added an
DNXCore50 import to every test project.  These can be removed once
test-runtime packages are updated to target NETCoreApp1.0.

I've updated all the test scripts which were assuming DNXCore50 as well
as docs which referred to this path.


Commit migrated from https://github.com/dotnet/corefx/commit/7ba4d296e3e0a2445ffa708c1e918d90d2bac69c
2016-05-24 21:49:17 -07:00
David Shulman 7bd12ef540 Merge pull request dotnet/corefx#8693 from davidsh/responsestream_cancelread
Fix cancellation of WinHttpHandler response stream reads

Commit migrated from https://github.com/dotnet/corefx/commit/7a55665dd4f068e5bce748107b6a53fcb5e5c14c
2016-05-19 18:39:33 -07:00
David Shulman 107ed2e91a Address PR feedback 2
Commit migrated from https://github.com/dotnet/corefx/commit/11942a384a06fbce76a04e445fd8c42cf4224589
2016-05-19 12:46:35 -07:00
David Shulman c9bec09c2c Address PR feeback
Commit migrated from https://github.com/dotnet/corefx/commit/041d789f4137346e8e7847a77a4748f4fd51e0e4
2016-05-19 10:45:57 -07:00
David Shulman 87cf76acf3 Fix cancellation of WinHttpHandler response stream reads
Reading from the response stream using ReadAsync() was ignoring the cancellation token passed in. To fix this, registered a delegate that will be called to dispose the WinHTTP request handle during pending I/O. This will cause the WinHTTP operation to cancel.

Added tests. For now, left them disabled to be resolved in issue dotnet/corefx#8692 next week. But wanted to get this fix in asap since it blocks partners for RTM.

Fixes dotnet/corefx#8662.


Commit migrated from https://github.com/dotnet/corefx/commit/a6e019d8e1910b9fed3c1077be23bfd9023d2837
2016-05-19 10:12:09 -07:00
Matt Ellis e80c1f6794 Remove debian.8.2-x64 rid from projects
debian.8-x64 is the correct rid for debian and CI no longer uses it.


Commit migrated from https://github.com/dotnet/corefx/commit/8eba099f188af464e5e4ef8cd1b75ec53b137918
2016-05-17 19:22:33 -07:00
dotnet-bot 3aa5dbf336 Updating CoreFX dependencies to rc3-24117-00
Commit migrated from https://github.com/dotnet/corefx/commit/976b88889266258325f501e443b5bda6200cd3cc
2016-05-17 16:57:43 -04:00
Matt Ellis 4c035bad61 Merge pull request dotnet/corefx#8544 from ellismg/add-rids
Add additional runtimes

Commit migrated from https://github.com/dotnet/corefx/commit/fc5926e933371c755094c1c68f7cd39b73ae727c
2016-05-16 11:22:54 -07:00
David Shulman 5b5872fb3c Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/cc94fe3430c0bbd4603589865885c093a9e58415
2016-05-16 07:00:49 -07:00
David Shulman db9be5c4c1 Fix WinHttpHandler default cred auth when server offers multiple schemes
When a server offers multiple auth schemes, WinHttpHandler is supposed
to select the more secure scheme regardless of the order of the
authentication headers. So, despite a server offering Basic and
Negotitate (in that order), Negotiate would be selected.

When using default credentials, however, it was not calling
WinHttpSetCredentials(null, null). This resulted in the first scheme
offered by the server (Basic) to be attempted. But there were no
credentials set and so a 401 resulted.

Fix WinHttpHandler so that it will always call WinHttpSetCredentials
even with default credentials. This ensures that the selected auth
scheme (in this case Negotiate) is used correctly.

Revised test configuration instructions. An IHttpModule is used for the
test server endpoint to ensure that IIS will put 'Basic' first in the
response headers.


Commit migrated from https://github.com/dotnet/corefx/commit/9c6821d9d39ebe67b03f6e491489ffbb44844612
2016-05-15 17:00:02 -07:00
Matt Ellis 39c142ef5a Add additional runtimes
- Add "debian.8-x64". This is the correct rid for Debian, after this
  lands, I will need to update CI before we can remove "debian.8.2-x64"

- Add a generic "linux-x64" rid which we can use in cases where we want
  to build for a distro where we don't yet have a set of runtime
  packages.  This will let us restore the managed assets (since they are
  specific to "unix" or "linux" and then folks can do a native build to
  get the shims and runtime and copy them over (this is a more
  reasonable approach than our current strategy of just using
  ubuntu.14.04-x64)

- Sort runtime sections


Commit migrated from https://github.com/dotnet/corefx/commit/6fa4bc1d215d17ff484aa3f541c5e3181f6918de
2016-05-15 00:19:07 -07:00
David Shulman aed74e56f1 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/53c50e84f6be882f896d01b5ec99d2183cb44c48
2016-05-14 19:46:36 -07:00
David Shulman 354c2e5b9c System.Net.Http 4.1 contract implementation
As per approved dotnet/corefx#7623, add remaining properties to HttpClientHandler for
all platforms.

Move pre-existing Unix-only Http tests to run for all platforms.

Ensure that "credentials" related properties are secure by default and have
an initial (default) value of null.


Commit migrated from https://github.com/dotnet/corefx/commit/361b66146506a58f7d2c27224cc02f9583cd0639
2016-05-14 17:07:27 -07:00
David Shulman 218ab34fca Merge pull request dotnet/corefx#8518 from davidsh/winhttp_sslprotocols
WinHttpHandler.SslProtocols initially will use OS defaults

Commit migrated from https://github.com/dotnet/corefx/commit/e924c2efb4a5f8313406553850f7cde3ce7a6fd9
2016-05-13 14:41:29 -07:00
Stephen Toub 5a92862423 Merge pull request dotnet/corefx#8500 from dotnet-bot/UpdateDependencies20160513035055
Updating CoreFX dependencies to rc3-24113-00

Commit migrated from https://github.com/dotnet/corefx/commit/d0fdc093a18858e12e4c13617b5643c4e4ea9d47
2016-05-13 16:25:48 -04:00
David Shulman e4a5237a67 WinHttpHandler.SslProtocols initially will use OS defaults
To support future security improvements, the default value for WinHttpHandler.SslProtocols will use the enum value of .None. This means that no preferred list of protocols is being expressed. And that means to use the best OS defaults. Currently this translates into using "Tls10 | Tls11 | Tls12".

This list will change over time as platforms adopt newer Tls versions and phase out older versions.


Commit migrated from https://github.com/dotnet/corefx/commit/9530ca89d99e2778d7882847230c462798e59544
2016-05-13 12:57:07 -07:00
David Shulman f0d46aef79 Remove WinHttpHandler.ConnectTimeout property
It turns out that setting the WinHTTP 'Connect' timeout does nothing. We discovered this because we still got ERROR_WINHTTP_TIMEOUT errors after about 20 seconds even after setting the 'Connect' timeout to INFINITE. We discussed this with the WinHTTP team and they told us that this timeout is essentially deprecated due to performance enhancements in the TCP stack.

For the technically curious, here is the explanation. Underneath the 'Connect' timeout is really a set of TCP timeouts related to setting up the socket via the 3-leg SYN/ACK exchange. The TCP timeout is about retransmits with backoff and how many is tried by the winsock stack. The default of these initial packet exchanges is 21 seconds with 2 retransmits (3 overall SYNs) and initial RTO of 3 (3 + 6 + 12). So that explained the timeouts we saw during periods of high network congestion.

There is no API exposed in WinHTTP to control those low-level TCP timeouts. And thus it doesn't make any sense to have a 'ConnectTimeout' on the WinHttpHandler class.


Commit migrated from https://github.com/dotnet/corefx/commit/ee0b3a76c8c57ef80d1d53a16deb5b0bc6b46793
2016-05-13 09:40:39 -07:00
dotnet-bot 8e00f7db31 Updating CoreFX dependencies to rc3-24113-00
Commit migrated from https://github.com/dotnet/corefx/commit/4a1e90e8a33c423e5356e9850b834cbfa24bfde7
2016-05-13 15:50:55 +00:00
David Shulman 6489f6d1c9 Add configurable test settings for Http and WebSocket tests (dotnet/corefx#8480)
Building on the current use of environment variables for passing in test settings, added a common test helper class to allow the http and websocket tests to access alternate test servers. This will help with load balancing and network latency issues which are causing occasional timeouts in CI tests. This will also allow developers to run their own version of the Azure test endpoints. Consolidated the current environment variables used and standardized on a naming format.

Fixes dotnet/corefx#2383.

Commit migrated from https://github.com/dotnet/corefx/commit/3603ed2578220f0ecb2f101324e04acb80fa3196
2016-05-12 14:57:03 -07:00
dotnet-bot ce3a923ef2 Updating CoreFX dependencies to rc3-24112-00
Commit migrated from https://github.com/dotnet/corefx/commit/388140d1885acee4019544e4b9f8ccb6dd4310d6
2016-05-12 05:51:26 +00:00
David Shulman 71f781e3c2 Improve WinHttpHandler logic regarding default credentials (dotnet/corefx#8434)
* Improve WinHttpHandler logic regarding default credentials

In some cases, WinHttpHandler was not sending default credentials that were specified inside a custom ICredentials object. In other cases, default credentials would be sent even though CredentialCache.DefaultCredentials was not specified. The code was incorrectly comparing the proxy and server credential (ICredential interface) values against the DefaultCredentials object. Instead, the ICredentials.GetCredential() method should be called to compute the final NetworkCredential object. This takes into account the given uri and auth scheme.

This PR fixes the logic by delay the setting in WinHTTP for releasing default credentials. This ensures that default crdentials are released when requested.

Fixes dotnet/corefx#8176.

* Address PR feedback

Reword comments for clarity.
Add TODO issue.
Sending default creds to proxy only needs MEDIUM security policy.


Commit migrated from https://github.com/dotnet/corefx/commit/90b8ff36c8c9f9cfb1a2cf1302ff7a98ac7801ed
2016-05-11 07:01:41 -07:00
stephentoub bb56a66ba5 Updating CoreFX dependencies to rc3-24111-00
Commit migrated from https://github.com/dotnet/corefx/commit/3b49a7960613e27f89538a53a893a0f8fbb74593
2016-05-11 06:47:29 -04:00
dotnet-bot bb2d7075e5 Updating CoreFX dependencies to rc3-24110-00
Commit migrated from https://github.com/dotnet/corefx/commit/2c092dd2f1ede076753ffee8342a4e04f919b89a
2016-05-11 00:08:46 +00:00
dotnet-bot 9829ded094 Updating CoreFX dependencies to rc3-24109-00
Commit migrated from https://github.com/dotnet/corefx/commit/a0ae8adee8b9454180c3e1f9416f28964b6eccb3
2016-05-09 06:40:00 +00:00
dotnet-bot 61320ea502 Updating CoreFX dependencies to rc3-24106-00
Commit migrated from https://github.com/dotnet/corefx/commit/22f53438e34b804d30f472ce6482db5e457bfee0
2016-05-06 22:26:49 -07:00
Eric St. John a813f99b7f Fix restore of Crypt.Algo dependencies from tests
Tests still target DNXCore50 which hasn't been updated to  support
NETStandard1.6.
Recent changes to the algorithms packaged the impl as 1.6.
Until the tests can be updated, import netstandard1.6 explicitly.


Commit migrated from https://github.com/dotnet/corefx/commit/7fdf8c87435b7ca190f2d611b799db88a4f8224a
2016-05-05 18:29:37 -07:00
dotnet-bot eb8b19bb33 Updating CoreFX dependencies to rc3-24105-00
Commit migrated from https://github.com/dotnet/corefx/commit/880e04074fa4918010feb681de16f95f711a5534
2016-05-05 14:18:51 -07:00
dotnet-bot a08807e184 Updating CoreFX dependencies to rc3-24102-00
Commit migrated from https://github.com/dotnet/corefx/commit/f9171470a3c4a8261d4cd3945106c7d632a504d9
2016-05-02 23:40:09 +00:00
Eric St. John 52fb000bf4 Use netcoreapp1.0 TFM for .NETCore validation
Commit migrated from https://github.com/dotnet/corefx/commit/17d24311ef3490a7d4ec25f8105c780c1018a577
2016-04-30 09:53:43 -07:00
Eric StJohn 3967abac2c Merge pull request dotnet/corefx#8072 from ericstj/improveDesktopPackaging
Make desktop assets resolve without RID

Commit migrated from https://github.com/dotnet/corefx/commit/eb1f7d63bf6f126e24d06b95fb64bb1c9fd06451
2016-04-26 17:38:33 -07:00
Eric St. John 3aa48bbf6a Remove special case OSGroup PropertyGroup
Previously I excluded reference assembly and package projects from
OSGroup derived properties.  This is actually unnecessary, the reason
I was doing this before actually turned out to be issues with the usage
of OSGroup from builds files for pkgproj's.


Commit migrated from https://github.com/dotnet/corefx/commit/153c25729c66348f02655c031e1d4f572093cc98
2016-04-26 14:37:22 -07:00
Eric St. John 54f18d06f2 Eliminate use of PackageTargetRuntime in CSPROJ
PackageTargetRuntime can now be derived from the OSGroup of the project.
Set the default values in dir.props and only override if necessary.


Commit migrated from https://github.com/dotnet/corefx/commit/7f871515097039b95b70c974eb5947fe7afaa322
2016-04-26 12:39:49 -07:00
Eric St. John a27cef15c7 Make desktop assets resolve without RID
Packages that support desktop need to install in projects that use
packages.config, so we should not rely on RID-specific assets for
desktop assets.  Additionally, if some decides to use project.json and a
RID we need to make sure they still get the right desktop asset.

This change standardizes most of the desktop builds to specify both RID
and TFM.  The common packaging targets will put the asset in both
lib/TFM and runtimes/RID/lib/TFM for desktop projects.


Commit migrated from https://github.com/dotnet/corefx/commit/0b7a2b6b4d1cf5f5a1fc2abc7e8c00c298bbe449
2016-04-26 12:39:48 -07:00
David Shulman 6afc7135a9 Add WinHttpHandler NTLM auth type handling
After further discussions and feedback regarding app-compat with legacy
servers, it's been decided we don't need to remove NTLM from the auth
type list. This commit puts NTLM back into the ordered list of auth
types. A similar change was made to CurlHandler in PR dotnet/corefx#7923.

Due to current limitations with the Azure test server endpoints
regarding integrated auth, this change was tested manually.


Commit migrated from https://github.com/dotnet/corefx/commit/583509a435891630162102ae4f57942f0e583123
2016-04-26 10:48:41 -07:00
dotnet-bot 40d3f889c2 Updating CoreFX dependencies to rc3-24026-00
Commit migrated from https://github.com/dotnet/corefx/commit/b2704ed517b846992ffd66806d54ffdf4cb62526
2016-04-26 05:41:52 +00:00
dotnet-bot facf18bbf5 Updating CoreFX dependencies to rc3-24022-00
Commit migrated from https://github.com/dotnet/corefx/commit/5bfcca66e5c16c3c1585d1087acd2ea522eb17a7
2016-04-22 05:37:54 +00:00
Davis Goodin a7bcdba80c Merge pull request dotnet/corefx#7931 from dagood/fix-package-dependencies
Change non-existent package dependencies to actual versions

Commit migrated from https://github.com/dotnet/corefx/commit/06e1f406147f768f83f3607f4f87066ee796eac9
2016-04-21 09:51:35 -05:00
Stephen Toub e51d35ef2d Revert "Updating CoreFX dependencies to rc3-24021-00"
Commit migrated from https://github.com/dotnet/corefx/commit/019f436a0e66a807a7fefcc24095c5e158033bf8
2016-04-21 10:31:37 -04:00
dotnet-bot c7c632b514 Updating CoreFX dependencies to rc3-24021-00
Commit migrated from https://github.com/dotnet/corefx/commit/5cc2c6a3ce0d0a38fb6f8149bbfae16929f3cd00
2016-04-21 05:34:38 +00:00