Commit Graph
6 Commits
Author SHA1 Message Date
Stephen Toub c169c2419f Add retry to GetConnectedWebSocket
To hopefully avoid spurious failures when connecting to the Azure endpoint.


Commit migrated from https://github.com/dotnet/corefx/commit/13512b795e811b10f2deac1e8af2632fe0e10853
2016-06-19 20:41:18 -04:00
Stephen Toub f1af179448 Initial System.Net.WebSockets.Client implementation on Unix
This PR provides an initial implementation of the client WebSockets library for Unix.  It's actually not Unix-specific, and rather is a managed implementation on top of System.Net.Sockets and System.Net.Security.

I opted to start with a managed implementation as there does not appear to be a universally-adopted native implementation we can utilize.  I looked to see if we could just adopt the Mono implementation, but it's based on HttpWebRequest, which in corefx is built on top of HttpClient, which isn't particularly amenable to being used for websockets (and libcurl does not have websockets support).

This is passing all of the unit/functional tests, including a few more I added.  It's also passing all of the AutobahnWS tests (two with non-strict results), except for the compression ones, as that's not implemented.

I've spent close to zero time looking at performance; I'm sure there are opportunities to make meaningful improvements, but for now I've opted for simplicity and functionality.  There are also two features I didn't implement: proxies and credentials... but it doesn't look like either the WinHttp or WinRT implementations pay attention to those either.


Commit migrated from https://github.com/dotnet/corefx/commit/b726c18227cf1c3cee21df86d762d557fd81a5e1
2016-06-11 05:51:14 -04: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
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