Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Deduplicate identical /sync requests #668

Merged
merged 3 commits into from
Mar 24, 2016
Merged

Conversation

NegativeMjark
Copy link
Contributor

If two /sync requests arrive at the server at the same time then use the same sync response for both of them.

"""

def __init__(self):
self.pending_result_cache = {} # Request that haven't finished yet.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*Requests

@ara4n
Copy link
Member

ara4n commented Mar 24, 2016

this looks plausible to me, but i'm hardly a twisted expert.

@ara4n ara4n assigned NegativeMjark and unassigned ara4n Mar 24, 2016
@NegativeMjark NegativeMjark merged commit 3e8bb99 into develop Mar 24, 2016
@@ -35,6 +36,7 @@
"user",
"filter_collection",
"is_guest",
"request_key",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this?

@richvdh richvdh deleted the markjh/deduplicate branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants