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

Keep track of open xhrs and only flush if there aren't too many #8

Open
msaspence opened this issue Jul 22, 2016 · 3 comments
Open
Labels

Comments

@msaspence
Copy link

To help prevent barometer's requests holding up the application's requests we could keep track of open xhrs and only send the buffer if less than a specified number are open.

@theninj4
Copy link
Contributor

Currently we wait at least 5 seconds between flushing the buffer and timeout each XHR request after 4 seconds. It shouldn't be possible to ever have more than one request in-flight at once.

@msaspence
Copy link
Author

I mean keep track of other requests so we don't complete with the application for what might be limited band width.

@theninj4
Copy link
Contributor

Ahh interesting. Great idea 👍

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

No branches or pull requests

2 participants