Files
dotnet-runtime/src/libraries/System.Net.WebSockets.Client/tests
Stephen Toub 43996b5017 Fix two WebSocket issues on Unix
This fixes two issues in our managed ClientWebSocket implementation, both of which stemmed from a misunderstanding on my part of how things were supposed to work (or not work):
- I thought that if the WebSocket was already in a CloseSent state and then received a close frame that it should transition to Closed.  Instead, it's supposed to transition to CloseReceived.  Similarly, I thought a WebSocket that was already in a CloseReceived state and then sent a close frame was supposed to transition to Closed.  Instead, it's supposed to transition to CloseSent.  The WebSocket is only supposed to transition to Closed when the connection is closed.
- I thought that ReceiveAsync could only be used concurrently with a SendAsync.  Turns out we need to support it being used concurrently with a Close{Output}Async.

This commit fixes both.


Commit migrated from https://github.com/dotnet/corefx/commit/b729fffc30a36fb765a149596d518658ea069938
2016-07-16 21:42:13 -04:00
..
2016-06-15 09:33:28 -04:00
2016-06-15 09:33:28 -04:00
2016-07-16 21:42:13 -04:00
2016-06-15 09:33:28 -04:00
2016-01-27 08:02:28 -08:00
2016-01-27 08:02:28 -08:00