Commit Graph
67 Commits
Author SHA1 Message Date
Cristian Pop 01d61b736f Fixing and adding tests for the in-memory VirtualNetwork/Stream. Adding
TaskTimeoutExtensions and fixing the System.Net.Security timeout pattern.


Commit migrated from https://github.com/dotnet/corefx/commit/27954497d635ff0f01fbb16e1b485156c51398ea
2016-02-08 16:02:01 -08:00
stephentoub 2e521c57c9 Update packages to rc3-23808
Commit migrated from https://github.com/dotnet/corefx/commit/31bb3a0cd271aebc9a4336a53b0fc3bb900fe22f
2016-02-08 07:26:49 -05:00
David Shulman 7bc323723b Address PR feedback 2
Add assert in DecrementHandlesOpenWithCallback


Commit migrated from https://github.com/dotnet/corefx/commit/76b7c42e19efd74905226b565162bb741233d625
2016-02-07 08:00:46 -08:00
David Shulman 33c4141566 Revise state object Pin/Unpin design
After looking at some asserts and crashes in the performance/stress tests with this PR, I discovered that the order of receiving HANDLE_CLOSING callbacks is not always the same as the order in which the handles are closed. This was causing the state object to be unpinned at the wrong time depending on async race conditions.

Modified the pin/unpin design to be cleaner and use interlocks to increment/decrement the number of handles associated with the callback (at most there are two - request and websocket handles).


Commit migrated from https://github.com/dotnet/corefx/commit/b2fb65865bc9dfb9af729faca38f4bccb1b7b31e
2016-02-06 20:14:45 -08:00
David Shulman 1739d08b63 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/990fdc3ea3750d7aa90a1f6b0ed77a76c3270e6a
2016-02-05 14:26:11 -08:00
David Shulman c0e4cc6c90 Fix gchandle leak in WebSockets.Client
The Windows implementation of WebSockets.Client leaks the WinHttpWebSocketState object. This object was being pinned by `GCHandle.Alloc(this)` in the contructor. And it was never freed.

This object needs to be pinned during the WebSocket lifecycle because the address of the object is passed to native WinHTTP and used as the context value during callbacks. However, it needs to be manually freed at the proper time after all WinHTTP callbacks are done via closing down the handles.

This fix adds Pin() and Unpin() methods to WinHttpWebSocketState and calls them at appropriate times. While fixing this I discovered other places where the object might be left as pinned. The current logic relies on WinHTTP calling the callback with HANDLE_CLOSING before the object would get unpinned. But since the object is pinned very early on, it's possible due to unexpected errors, that the wiring of the WinHTTP callback never gets done. And thus, the object would never have been unpinned.  This fix delays the pinning of the object until the right time where it is assured that the WinHTTP callback wiring has been completed.

This logic is now similar to the state handling in WinHttpHandler. There is still a work item dotnet/corefx#2501 to merge these design implementations and share code in the future.

Fixes dotnet/corefx#3256.


Commit migrated from https://github.com/dotnet/corefx/commit/73eca63458ba8f6ed121cc19813b907e359a67c9
2016-02-05 12:02:06 -08:00
stephentoub 30a19d4335 Update packages to rc3-23803
Commit migrated from https://github.com/dotnet/corefx/commit/d27ef6fb6092060e643c49a670e825e0cc01ff4d
2016-02-04 07:38:24 -05:00
stephentoub 715cbde1c2 Update dependencies to rc3-23729
Commit migrated from https://github.com/dotnet/corefx/commit/372c940deee1f81c452e69a0ad46ae9f18f6d803
2016-01-29 18:11:41 -08:00
Jose Perez Rodriguez 88f2de884f Merge pull request dotnet/corefx#5711 from joperezr/RestoreMSBuild
Use .Net Core MSBuild for OS X and Linux Builds

Commit migrated from https://github.com/dotnet/corefx/commit/ab6ec2fa803a330e73809cf478753959a36185e5
2016-01-28 15:51:39 -08:00
Jose Perez Rodriguez 0df7c31e39 Use .Net Core MSBuild for OS X and Linux Builds
Commit migrated from https://github.com/dotnet/corefx/commit/4367ec4c791928c6b2f994e9602dbc75aea7934d
2016-01-28 08:46:24 -08:00
Stephen Toub 75b957414f Merge pull request dotnet/corefx#5723 from stephentoub/update_license_headers
Update licensing headers

Commit migrated from https://github.com/dotnet/corefx/commit/ac67ffac987d0c27236c4a6cf1255c2bcbc7fe7d
2016-01-27 14:10:52 -08:00
stephentoub 9ecf277528 Update package versions to rc3-23727
Commit migrated from https://github.com/dotnet/corefx/commit/c442e611d1b4dddc12703b8b80bea9f3889f141d
2016-01-27 08:08:48 -08:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Lakshmi Priya Sekar 1aa7a9ac09 Update packages version to 23726.
Commit migrated from https://github.com/dotnet/corefx/commit/213da430524eceb9e90883c3d08848f62c813a91
2016-01-26 16:30:20 -08:00
stephentoub 4ef1e70a8a Update package dependencies to rc3-23725
Commit migrated from https://github.com/dotnet/corefx/commit/fad28575225858febd3069d41582a1502c5dda07
2016-01-25 14:38:56 -05:00
stephentoub 6545572fb1 Upgrade packages to rc3-23722
Commit migrated from https://github.com/dotnet/corefx/commit/02ece5061a33a7c12113cc4a52b2321d9e6db185
2016-01-23 11:36:29 -05:00
Eric Erhardt 4d42d8879e Bump ExpectedPrerelease version to latest (rc2-23713)
Commit migrated from https://github.com/dotnet/corefx/commit/ea4b19c136f3fa6355fd307b38cbe605b519b5eb
2016-01-21 09:46:18 -06:00
Wes Haggard 6d42101111 Remove OSGroup=Windows_NT from netcore50/netcore50aot configurations
Originally the goal was to tag the configurations with OSGroup=Windows_NT
if they were only applicable on that OS. However there is nothing particular
to that OS for most of them and they can build and run on an OS that supports
the managed dependencies.

More importantly we want to enable people to build IL only packages on any
OS and not force them to have a separate windows only package for things targeting
netcore50/netcore50aot. As an example System.AppContext recently introduced
an IL only package that can and should build fine on other OS's.


Commit migrated from https://github.com/dotnet/corefx/commit/3455f80483fbe89894f8ba69eafa0641bc78ecd8
2016-01-18 12:16:08 -08:00
Ian Hays e3311742d9 Bump ExpectedPrerelease version to latest (rc2-23712)
Commit migrated from https://github.com/dotnet/corefx/commit/01c61f62988e8abf39aecc64b0a97ea4e384de3f
2016-01-14 10:36:27 -08:00
unknown 11c00ec04f Add netcore50 support to System.Net.WebSockets.Client library
Commit migrated from https://github.com/dotnet/corefx/commit/4421a08d58bf21013b4fa2161b9e30a28173dfe8
2016-01-13 14:18:00 -08:00
Stephen Toub 7e7598c93f Merge pull request dotnet/corefx#5350 from dagood/fix-project-dependencies-nugetexe
Fix project.json dependencies: xunit DNXCore incompatibility + invalid package dependencies

Commit migrated from https://github.com/dotnet/corefx/commit/d591a687578f01ead8421ee4898b7bf42e7d95d6
2016-01-13 16:06:59 -05:00
David Shulman 668471c1a1 Fix build due to recent GitHub PR merge https://github.com/dotnet/corefx/pull/5151
[tfs-changeset: 1564239]


Commit migrated from https://github.com/dotnet/corefx/commit/641df2682b05f9ab212713ff5b9c93adf9e7bb2c
2016-01-13 11:07:07 -08:00
David Shulman adb79c2b9e Merge pull request dotnet/corefx#5151 from josguil/NetLogFix
Deleting Logging.cs file and references

Commit migrated from https://github.com/dotnet/corefx/commit/e73756bdc333c3cb3cdd48417669a032a02fac86
2016-01-12 20:50:54 -08:00
David Shulman fda959981e Port additional WebSocket tests
Port remaining websocket client tests dealing with close handshake semantics including "server initiated" close handshakes.

Switch networking test servers to the newer Azure Cloud Service servers which work better with websocket close handshakes.


Commit migrated from https://github.com/dotnet/corefx/commit/e2e14e2f1abd1bfce0b0cae4b2e85cfe659d9074
2016-01-12 16:24:43 -08:00
dagood e401efd6af Add portable-net45+win8 import to tests.
Specifically, add the import to dnxcore50 frameworks entries where "xunit" is mentioned in the project.json.
This fixes `xunit.abstractions 2.0.0 is not compatible with DNXCore,Version=v5.0.`


Commit migrated from https://github.com/dotnet/corefx/commit/da2e8eb34efcaf70069223bc431d80909a2fc91d
2016-01-12 14:04:32 -06:00
Guillermo Rangel 54f514187f Deleting Logging.cs file
Substituting Logging calls to EventSource calls, or calls to
LoggingHash.

Formatting Changes

Fixing Aligment, and casing.

Changing Dump methods log the hash of the object calling it instead of the method

After some discussion, it was decided that it is more useful to log the
object where the dump happens, than the method. Doing the necessary
changes for it.

Changing usage of "this" to [CallerMemberName]

Instead of using this to know who called the logging method, using
[CallerMemberName] as an attribute to the parameter to fill that
information.

Adding a TODO item.

Making a note to not change NetEventSource or it can break.

Missing Underscore

Adding missing underscore in _wsaBuffer


Commit migrated from https://github.com/dotnet/corefx/commit/f39502ef910c90ba1e67d787df98b627d39ba6cc
2016-01-12 10:27:16 -08:00
Wes Haggard a3e67fdf73 Update .builds files to include OSGroups
This these .builds files were updated and generated from a script
based on the configurations defined in the matching csproj files.

This updates the builds files to specify OSGroup and TargetGroup
as metadata instead of using AdditionalProperties and also sorts them by
TargetGroup followed by OSGroup.


Commit migrated from https://github.com/dotnet/corefx/commit/95efe37475916016a5fc6ee6f0ba584d990c4196
2016-01-02 23:50:23 -08:00
Wes Haggard f27c7dc024 Update project files adding default configurations
This add a default configuration before the Import of dirs.props
for any projects that don't have Debug as the default configuration.

Removed Configuration and Platform properties set after dirs.props
as they would have no affect and just cause confusion.

Removed OutputType=Library property as it isn't necessary.


Commit migrated from https://github.com/dotnet/corefx/commit/9e1da13cf6d5ff4b37b1867beb3411a2fe61da6a
2016-01-02 23:50:21 -08:00
Pallavi Taneja 95a3b67166 Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo()
Expose Assembly.GetEntryAssembly and TypeInfo.IsEquivalentTo() in System.Reflection.
Fixes issues dotnet/corefx#4146 , dotnet/corefx#2101


Commit migrated from https://github.com/dotnet/corefx/commit/e28fdbd9dd98810a81207c665fdc4e6b40b24e64
2015-12-21 14:56:26 -08:00
Pallavi Taneja 90c2d27bf1 Update Corefx Repo to depend on newer package versions
Disable failing tests with the tracking active issue


Commit migrated from https://github.com/dotnet/corefx/commit/98fdc29624cd791bba42ec1e0cd5c256f331adfe
2015-12-21 11:48:15 -08:00
stephentoub 77c4183d17 Update package validation to rc2-23610
Commit migrated from https://github.com/dotnet/corefx/commit/6f6303f0356be4d2dd4ac117373f1e37f8752248
2015-12-11 10:53:47 -05:00
Eric Mellino b8670dea2f Add facade projects for all supported platforms
These facade project files were generated using a porting tool I wrote,
which examined some information from our internal build and created
appropriate project files. I have also re-generated all of the .builds
files so that they import the facade projects in the correct manner.


Commit migrated from https://github.com/dotnet/corefx/commit/58e2f6e862060039e1ebad727d75c87703fdb2f2
2015-12-10 10:29:09 -08:00
dagood fbfb82cc8c Change all project.json files to validate. Remove lockfiles from source control and add to gitignore.
A few new references to pick up changes that happened over time.


Commit migrated from https://github.com/dotnet/corefx/commit/0d881222d8c3269157639e2e67056e5a83aad834
2015-12-09 16:25:26 -06:00
dotnet-bot 63d3f404c4 DevDiv VSO# 158455 - Deprecate System.Private.Networking.dll and move to building from GitHub sources in .NET Core
Switching System.Net Win contracts to use code in the Open partition.
Creating individual implementations for System.Net contracts for Win.
Removing System.Private.Networking (partial, requires a second check-in due to TFS limitations).
Removing System.Private.Networking.Build.
Removing System.Net.Common.
Updating ToF tests.
Reactivating all ToF tests for System.Net (validated on private builds).
Porting remaining UnitTests to GitHub.
Creating packages for System.Net.Utilities for Unix.

[tfs-changeset: 1554743]


Commit migrated from https://github.com/dotnet/corefx/commit/96ef10191969d8216d538e9a2a25222661b83683
2015-12-04 15:13:41 -08:00
Deepak Shankargouda f5284f6fcc Created initial set of .builds files
Commit migrated from https://github.com/dotnet/corefx/commit/a20fd22b1e44d13e437c235a957a47a2af52838d
2015-12-02 14:38:03 -08:00
David Shulman 1f6fa25d37 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/aaaceeeba25657ebf77b7a4cc99c0a751d85b826
2015-11-19 11:14:57 -08:00
dotnet-bot df96df8a5d Port more System.Net.WebSockets.Client tests
Add subprotocol tests
Add unknown/incorrect websocket endpoint tests


Commit migrated from https://github.com/dotnet/corefx/commit/ad216f04b61694c2cdabfe53e93846469104fc96
2015-11-19 10:31:10 -08:00
dotnet-bot 2d628edc32 Port more System.Net.WebSockets.Client tests
Continued porting internal ToF tests to GitHub.
Modified tests to use a good dev pattern of 'using' around websocket use.


Commit migrated from https://github.com/dotnet/corefx/commit/8bedbc44c65e25e7529a2b965fa42cce83485e76
2015-11-15 20:16:44 -08:00
stephentoub ee07e7c57d Use new ConditionalFact in WebSockets tests
Upgrade to new buildtools and try out ConditionalFact in the WebSockets tests.  Other tests elsewhere in corefx can be moved over separately.


Commit migrated from https://github.com/dotnet/corefx/commit/610a47a65c637c87ea0ed57d0392b142ed974b2f
2015-11-13 23:51:56 -05:00
dotnet-bot 36901c39a9 Add System.Net.WebSockets.Client tests
* Port some of the ToF ClientWebSocket tests that talk to a real websocket server
* Cleanup naming of existing tests to conform to System.Net test method naming
* Skip tests if not supported on platform. Specifically, these tests were failing
on Win7 since Win7 does not support WinHttp WebSockets. We haven't really noticed this
failing since the CI doesn't yet run Win7 tests (issue dotnet/corefx#4468)

I plan to port the remainder of the ToF websocket related tests in a subsequent PR.


Commit migrated from https://github.com/dotnet/corefx/commit/5006756101cab2edb9bb40590542d7a3df15f0cc
2015-11-12 15:17:48 -08:00
Eric St. John 65210efd31 Update project.lock.json to latest and lock
Commit migrated from https://github.com/dotnet/corefx/commit/6aeea5eabf2aff3baf15f501cabd156dfc5b3f8f
2015-11-09 22:38:10 -08:00
Eric St. John cddddd29f5 Remove unused dependencies
Commit migrated from https://github.com/dotnet/corefx/commit/78fd45ec74afc507a40df519b4df650ac9bd4c42
2015-11-09 22:37:37 -08:00
Pat Gavlin 216072501c Add some missing using statements.
The lack of these statements was breaking the TFS build.

Fixes dotnet/corefx#4143.


Commit migrated from https://github.com/dotnet/corefx/commit/9ea0681683c3ac9528a99ce6e8c717da732dcdfe
2015-10-28 16:27:33 -07:00
Cristian Pop d225597e12 Adding TODO issue number.
Adding TODO tracking issue number (dotnet/corefx#4143) to fix the NetNative WebSocket.Client contract implementation.

Commit migrated from https://github.com/dotnet/corefx/commit/3baafe4be43cca752e3a7eb1e69df249ba248001
2015-10-26 15:32:19 -07:00
Matt Ellis eeadd93e8a Merge pull request dotnet/corefx#4087 from dotnet-bot/from-tfs
Merge changes from TFS

Commit migrated from https://github.com/dotnet/corefx/commit/aea4867fb7622a3065254c84b0bfda888af62d91
2015-10-22 17:16:12 -07:00
Matt Ellis 006851c7fc Merge pull request dotnet/corefx#4079 from dotnet-bot/from-tfs
Merge changes from TFS

Commit migrated from https://github.com/dotnet/corefx/commit/a3050bacc9b716f52f086751bfb4bf0384019f53
2015-10-22 16:36:18 -07:00
Christopher Costa 974a16e614 Runtime packaging for System.Net.WebSockets.Client
[tfs-changeset: 1540906]


Commit migrated from https://github.com/dotnet/corefx/commit/292079ca842550d9ca487f30a47bc2178b6460e9
2015-10-22 15:46:33 -07:00
Eric St. John 8cc3c24b51 Update lock files that were missed in previous restore.
A change was made to DNX to no longer restore project.jsons
that are in nested folders.  This caused my batch update to miss
a number of tests and reference assembly projects.

This fixes the stale lock files, but restore is still broken.

[tfs-changeset: 1540448]


Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
2015-10-21 18:59:09 -07:00
Eric St. John 543808303a Update dnx to v1.0.0-rc1-15838, update dotnet projects to generations
We need a new DNX to understand the latest packages.

We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.

The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.

[tfs-changeset: 1540388]


Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
2015-10-21 17:03:48 -07:00
Pat Gavlin 0ac5f634bc Unify the two definitions of WinHttpException.
Fixes dotnet/corefx#2542.


Commit migrated from https://github.com/dotnet/corefx/commit/2cad4090903ddfd1f11b78156f11bb614f391aa8
2015-10-21 14:56:45 -07:00