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

lib/connections: Limit rate at which we print warnings about version mismatch #3291

Closed
wants to merge 2 commits into from

Conversation

calmh
Copy link
Member

@calmh calmh commented Jun 9, 2016

Relates to #3287. Tested manually.

@AudriusButkevicius
Copy link
Member

@st-review merge

@st-review
Copy link

👌 Merged as 6f5ca53. Thanks, @calmh!

@st-review st-review closed this Jun 9, 2016
st-review pushed a commit that referenced this pull request Jun 9, 2016
@@ -36,6 +36,8 @@ var (
listeners = make(map[string]listenerFactory, 0)
)

const perDeviceWarningRate = 1.0 / (15 * 60) // Once per 15 minutes
Copy link
Member

Choose a reason for hiding this comment

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

Suggest we should do this a bit more frequently? A version mis-match is almost never expected in a correct set-up: if it occurs, the user's going to be trying to find out why their devices won't connect. If the first message gets lost in some noise, we don't want them searching around for 15 mins before it pops up again, I would have thought..?

Copy link
Member Author

Choose a reason for hiding this comment

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

At least for the GUI, we stash the last five warnings and they're quite infrequent. So it should be available directly in the GUI when opened if it's happened at all recently

@calmh calmh deleted the warnlim branch June 12, 2016 14:15
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jun 16, 2017
@syncthing syncthing locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants