Repository navigation
No-ping timer, subscribe position order, delta without base - #106
Merged
Merged
Conversation
A server with pings disabled sends no ping interval in the connect reply. The client armed its no-ping timer anyway, with only maxServerPingDelay, so it ended every connection with "no ping" and reconnected, for good. The timer is now armed only when the server pings, as in other SDKs.
The position of a subscribe reply was stored after the subscribed event. A handler that throws stops the client before anything after the event runs, so the position the event reported was lost, and the next recovery started from an older one: the application received publications from before its subscription. The position is now stored before the event, as in centrifuge-js; after a recovery it is the position recovered from, which the recovered publications move as before.
A delta that arrived with no base was delivered as the payload and kept as the base. As in centrifuge-js it now stops the client with bad protocol. The base is also a copy of the delivered data, so an app changing the data in place does not break the next delta.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes found while running the SDK fuzz programs and reviewing delta compression against centrifuge-js and the server.
getData()in place doesn't break the next delta.