-
Notifications
You must be signed in to change notification settings - Fork 784
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
Socket timeout tidyup #3704
Merged
dsiganos
merged 10 commits into
nanocurrency:develop
from
dsiganos:socket-timeout-tidyup
Feb 3, 2022
Merged
Socket timeout tidyup #3704
dsiganos
merged 10 commits into
nanocurrency:develop
from
dsiganos:socket-timeout-tidyup
Feb 3, 2022
Commits on Feb 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for ad9f531 - Browse repository at this point
Copy the full SHA ad9f531View commit details -
Rename socket::stop_timer to socket:set_last_completion
All stop timer does is to set a variable. It is a simply setter function. It is confusing to call it stop_timer because it implies that it does something more than just set a timestamp.
Configuration menu - View commit details
-
Copy full SHA for ff04b78 - Browse repository at this point
Copy the full SHA ff04b78View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed053fa - Browse repository at this point
Copy the full SHA ed053faView commit details -
Configuration menu - View commit details
-
Copy full SHA for f137dd0 - Browse repository at this point
Copy the full SHA f137dd0View commit details -
Rename update_last_receive_time() to set_last_receive_time()
To make it obvious it is setter function and to make it consistent with other setter functions.
Configuration menu - View commit details
-
Copy full SHA for aeb08e4 - Browse repository at this point
Copy the full SHA aeb08e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f18d6c - Browse repository at this point
Copy the full SHA 2f18d6cView commit details -
Rename the nano::socket concept of deadline to timeout
A deadline makes people imagine a fixed point in time, a timestamp. However, socket::next_deadline is a timeout value and not a deadline. It signifies the seconds of inactivity that would cause a socket timeout. Renames: set_next_deadline -> set_default_timeout set_next_deadline(timeout) -> set_timeout(timeout) io_timeout -> default_timeout timeout_set -> set_default_timeout_value next_deadline -> timeout
Configuration menu - View commit details
-
Copy full SHA for 5a70f24 - Browse repository at this point
Copy the full SHA 5a70f24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bfcb73 - Browse repository at this point
Copy the full SHA 1bfcb73View commit details -
Configuration menu - View commit details
-
Copy full SHA for 799a070 - Browse repository at this point
Copy the full SHA 799a070View commit details -
Configuration menu - View commit details
-
Copy full SHA for 85cdaec - Browse repository at this point
Copy the full SHA 85cdaecView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.