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

do not back off on timeouts when sending reports #2746

Merged
merged 1 commit into from
Jul 25, 2017

Conversation

rade
Copy link
Member

@rade rade commented Jul 25, 2017

...since doing so unnecessarily throttles report sending, to the point where the app is receiving reports so infrequently that often it has no data to show.

The timeout period itself is sufficient to prevent thrashing.

Fixes #2745.

@rade rade requested a review from 2opremio July 25, 2017 04:02
@@ -215,7 +216,11 @@ func (c *appClient) doWithBackoff(msg string, f func() (bool, error)) {
backoff = initialBackoff
continue
}

if netErr, ok := err.(net.Error); ok && netErr.Timeout() {

This comment was marked as abuse.

This comment was marked as abuse.

@rade rade force-pushed the 2745-do-not-backoff-on-timeout branch from c4e991a to d844f0c Compare July 25, 2017 20:02
...since doing so unnecessarily throttles report sending, to the point
where the app is receiving reports so infrequently that often it has
no data to show.

The timeout period itself is sufficient to prevent thrashing.

Fixes #2745.
@rade rade force-pushed the 2745-do-not-backoff-on-timeout branch from d844f0c to a5a9180 Compare July 25, 2017 20:17
@rade rade merged commit d9705bc into master Jul 25, 2017
@dlespiau dlespiau deleted the 2745-do-not-backoff-on-timeout branch November 2, 2017 12:29
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