Skip to content

Fix bug that can prevent fast-polling clients from ever getting data again#38

Open
MatthewMeacham wants to merge 1 commit intoopenskynetwork:masterfrom
MatthewMeacham:fix-java-rate-limiting-preventing-calls
Open

Fix bug that can prevent fast-polling clients from ever getting data again#38
MatthewMeacham wants to merge 1 commit intoopenskynetwork:masterfrom
MatthewMeacham:fix-java-rate-limiting-preventing-calls

Conversation

@MatthewMeacham
Copy link
Copy Markdown

Fixes a bug in the Java client where a fast-polling client (i.e. more frequently than the 4900ms/9900ms rate-limiting for anon/authed, respectively) could result in never making a call to the OpenSky API again.

The issue here was that we would always update lastRequestTime even if the caller wasn't actually able to issue a call, resulting in never being able to issue a call after the first time.

@MatthewMeacham
Copy link
Copy Markdown
Author

@fixje Would be great to get your eyes on this!

@MatthewMeacham
Copy link
Copy Markdown
Author

@fabland @marataj @masorx maybe for review?

@marataj
Copy link
Copy Markdown
Contributor

marataj commented Apr 25, 2023

@MatthewMeacham, I'd rather someone else to do the review, I don't know java very well

@jaluebbe
Copy link
Copy Markdown
Collaborator

The java client is not supported anymore. However, if you think your contribution is essential to keep it alive please submit a pull request to the dev/java-client branch and take a look at the other java related pull requests before.

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.

3 participants