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

message-processor: Optimized + Ensure message ordering #554

Closed
wants to merge 1 commit into from
Closed

message-processor: Optimized + Ensure message ordering #554

wants to merge 1 commit into from

Conversation

ronag
Copy link

@ronag ronag commented Feb 6, 2017

This fixes several edge cases where messages going through the permission handler can be re-ordered... e.g. a UNSUBSCRIBE could be handled before READ even though the client sent READ first. Same problem in other cases such as UPDATE and PATCH.

Message ordering for a specific client should be maintained.

@ronag
Copy link
Author

ronag commented Feb 6, 2017

This should have minimal performance impact with some extra memory overhead. Might even be a bit faster since it avoids array, bind and closure allocations.

@ronag ronag changed the title ensure message ordering is maintained through permissions handler message-processor: Optimized + Ensure message ordering Feb 7, 2017
@yasserf yasserf added this to the 2.2 milestone Feb 8, 2017
@ronag
Copy link
Author

ronag commented Mar 20, 2017

@yasserf: We've merged this into our fork without problems so far.

@yasserf
Copy link
Contributor

yasserf commented Mar 25, 2017

This makes alot of sense, raised #610

Looks like a few new things need to be ported (mainly ignoring non text messages).

@yasserf yasserf closed this Mar 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants