-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ServerHandler, Settings: add ping interval and connection timeout duration settings. #3304
ServerHandler, Settings: add ping interval and connection timeout duration settings. #3304
Conversation
1bfdeeb
to
fe4f665
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Minor typo in comment. Zero or negative values in these settings might lead to bad behavior but I don't think we historically guard against bad config.
src/mumble/Settings.h
Outdated
@@ -331,6 +331,18 @@ struct Settings { | |||
ProxyType ptProxyType; | |||
QString qsProxyHost, qsProxyUsername, qsProxyPassword; | |||
unsigned short usProxyPort; | |||
|
|||
/// The ping interval in milliseconds. The Mumble client | |||
/// will send TCP and UDP pings to the remote server at this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"in" this interval?
fe4f665
to
536076c
Compare
I changed the wording of the comment. |
… duration. This commit implements (hidden, for now) settings for setting the ping interval and connection timeout duration.
… Settings instead of magic numbers.
536076c
to
97d776a
Compare
Rebased on top of the PR to use our own MXE mirror to speed up the MinGW builds. (#3305) |
This PR contains two commits:
Settings: implement settings for ping interval and connection timeout duration.
, which adds the necessary plumbing to the Settings class.ServerHandler: use ping interval and connection timeout duration from Settings instead of magic numbers.
, which hooks up ServerHandler to use the new values from the Settings class.