- This ensures that calling stop from a message receive doesn't deadlock the receive loop - Using TaskQueue.cs so added that to client projects - Had to modify TaskQueue to work in Portable, now do optimistic increment then unwind if we exceed the max size - Added a test to verify that async connection start, invoke, stop works without dead-locking - Drain the receive queue when Stop called - Raise connection error event if queued OnReceived callback throws - Removed duplicate call to start from failing test (Will log a separate issue to track the reason why this causes the failure) - #2653
- Also modified existing test to use the isFalse and isTrue QUnit methods. #2557
- This ensures that protocol relative urls are handled correctly. #2557
…to sleep that we do not mark it active prior to trying to reconnect. - Also added a test to verify that this scenario is covered. - Changed how the test utilities verify that foreverFrame is enabled. #2484
…to sleep that we do not mark it active prior to trying to reconnect. - Also added a test to verify that this scenario is covered. #2528
…ion.stop. - This ensures that when the disconnected handler is called that we're in the disconnected state. - Removed the try -> finally for this transition because the state transition now occurs prior to anything that would throw. - Added a simple unit test to ensure that disconnected is triggered while in the disconnected state. #2554
Fixed tests to abide by new heartbeat timer and the last message at value. Fixed some more keep alive fact tests since the heartbeat monitor now requires to be started before beat works for keep alive.
…ons where KeepAlive is disabled on the server. - Also fixed some tests to properly return transports with valid SupportsKeepAlive values. Initialize the lastActiveAt flag to ensure that there's no race between a transport start and the flag set. - This is to ensure we don't pre-emptively close connections on reconnect.
- Also modified existing tests that relied on the LastKeepAlive property to now rely on LastMessageAt. - LastMessageAt can now be used by LongPolling for message monitoring purposes.
…it work when we re-create a subscription
…so a MessagingException Conflicts: src/Microsoft.AspNet.SignalR.ServiceBus/ServiceBusConnection.cs
…is running in the browser. - Utilized the new generic heart beat check - Reverted the ConnectionTimeout change and left it at 110 seconds. #2484
… also do any other time related tasks. - This also involved modifying a lot of the tests to start heartbeats instead of keep alive check loops. #2484
…use the connection.url. - Also added a test to verify the fix. #2569