Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2505 - Clear LP transport timeouts to prevent multiple connections with same CID #2599

Closed
wants to merge 60 commits into from

Conversation

NTaylorMullen
Copy link
Contributor

  • Before if a connection timed out its reconnecting loop and went into the disconnected state and then was instantly re-started it would cause multiple connections with the same connection id to be active; ultimately resulting in each connection booting off its counterpart.
  • Also added some 2.0.0 QUnit extensions so that porting changes back is easier.
    Performance problem using long polling with many clients #2505

DamianEdwards and others added 30 commits September 10, 2013 12:27
- Treat canceled tasks like faulted tasks.
- Added another test to verify cancellation handling.
- Achieve this by recreating cursors that don't have the appropriate prefix
#2061
- Test that the .NET client can receive messages over 64KB via WebSockets
- Fixup the tests so they run on 1.1.x

#2495
#2258

Conflicts:
	build/Build.proj
	tests/Microsoft.AspNet.SignalR.Client.CSharp.Tests/Client/ConnectionFacts.cs
- Hopefully this will avoid "SCRIPT70: Permission denied" errors in IE

#2508
- Also added logging to show when a client subscribes to a hub.

#2514
- Added periods to the end of every log line.
- Removed "SignalR:" from beginning of logged lines so it wasn't logged twice.
- Re-worded some language
- Added Long poll complete log

#2512
- Change the withCredentials flag to only be auto-set when cross-domain is detected (can still be explicitly set)
- Conditionally do an async abort if the browser is Firefox 11+ AND withCredentials is true
#2489
- This change is only needed for cross-domain scenarios
- This does not work when the entire browser window is closed
#2517
… to prevent our ajax communications from failing.

#2511
abnanda1 and others added 28 commits September 24, 2013 13:35
- Avoids timeouts being mistakenly registered as aborts
- Unifies abort logic for all transports

#2195 #1231

#2500
- Prevent double dispose on the client side WebSocketTransport.
- Always close the websocket before cancelling the token on the server.
- Added tests that verify it noops after closing.
- Made the WebSocket property internal to ensure it's not used by another other code.

#2457
- Create a new cts for each websocket created.
…use the connection.url.

- Also added a test to verify the fix.

#2570
… server on pings will stop the connection.

- This involved creating a StatusCodeConnection that will change the response status code based on a query string variable AND will respond with a specified status code.

#2360
…iframe DOM when we don't need to.

- This involved adding a state check for connected and deleting the frame message count on transport stop.
- Also added an iframeClearThreshold value to the forever frame transport to allow me to test it.

#2494
- Added periods to the end of every log line.
- Removed "SignalR:" from beginning of logged lines so it wasn't logged twice.
- Re-worded some language.
- Added Long poll complete log.
- Made it so the clearing hub invocation log is only called if callbacks are available to be cleared.

#2487
…t expire when there's lack of activity.

- This also involved adding a new configuration option 'pingInterval' which can be set via milliseconds in the connection.start

#2507
…ent configuration options in addition to multiple connection starts and stops.

- Also modified the existing tests which called ping interval by also passing in a transport (no longer need to do that).

#2507
- Also added two fields to the private data field of a connection object.

#2505
…nnecting does not result in simultaneous polls attempting to connect.

#2125
- Added an extra check after long polling error handler trigger to ensure that multiple connections do not occur.

#2505
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants