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

Improvement: rename the variables in TCP reconnect function and some default constants. #124

Merged
merged 2 commits into from
Jun 15, 2024

Conversation

No-SilverBullet
Copy link

What this PR does:

rename the variables in TCP reconnect function and some default constants.

1.rename constant 'reconnectInterval' to defaultReconnectInterval and 'maxTimes' to defaultMaxReconnectAttempts, indicates that these two constants are the default settings.

2.rename vars in reConnect():

  • num->sessionNum,indicates the number of current sessions.
  • max->maxReconnectAttempts,indicates the maximum attempt times of reconnections.
  • times->reconnectAttempts, indicates the current number of reconnect attempts.
  • interval->reconnectInterval,indicates the interval between each reconnection.
  • maxDuration->maxReconnectInterval, indicates the max interval between each reconnection.

Which issue(s) this PR fixes:
NONE

Special notes for your reviewer:
NONE
Does this PR introduce a user-facing change?:

NONE

@AlexStocks AlexStocks changed the title rename the variables in TCP reconnect function and some default constants. Improvement: rename the variables in TCP reconnect function and some default constants. Jun 15, 2024
@AlexStocks AlexStocks merged commit ac07194 into apache:master Jun 15, 2024
1 check passed
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