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

Change long-polling strategy to 5secs interval strategy on 5+ instant responses #166

Merged
merged 1 commit into from
Nov 4, 2015

Conversation

mauricioschneider
Copy link
Contributor

If there are more than 4 consecutive instant reponses from the server with status code 200, it adds a 5 seconds delay between requests. This, as a strategy for the possibility that the server is not using long-polling (ie. development, staging environments or custom servers).

@raliste
Copy link
Contributor

raliste commented Nov 4, 2015

LGTM

Note: the notification service could close a connection at t=0 if there's any pending notifications for the client.

mauricioschneider added a commit that referenced this pull request Nov 4, 2015
Change long-polling strategy to 5secs interval strategy on 5+ instant responses
@mauricioschneider mauricioschneider merged commit bbaeb65 into master Nov 4, 2015
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.

2 participants