Skip to content

Commit

Permalink
[master] Removed silly limitation of 65 seconds for HA timeout.
Browse files Browse the repository at this point in the history
Okayed on jabber.
  • Loading branch information
msiodelski committed Jun 14, 2018
1 parent 9c0969b commit 6a20e59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/hooks/dhcp/high_availability/ha_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,14 @@ class HAConfig {
/// @brief Returns timeout for lease database synchronization.
///
/// @return Timeout in milliseconds.
long getSyncTimeout() const {
uint32_t getSyncTimeout() const {
return (sync_timeout_);
}

/// @brief Sets new lease database syncing timeout in milliseconds.
///
/// @param sync_timeout new timeout for lease database synchornization.
void setSyncTimeout(const long sync_timeout) {
void setSyncTimeout(const uint32_t sync_timeout) {
sync_timeout_ = sync_timeout;
}

Expand Down Expand Up @@ -391,7 +391,7 @@ class HAConfig {
HAMode ha_mode_; ///< Mode of operation.
bool send_lease_updates_; ///< Send lease updates to partner?
bool sync_leases_; ///< Synchronize databases on startup?
long sync_timeout_; ///< Timeout for syncing lease database (ms)
uint32_t sync_timeout_; ///< Timeout for syncing lease database (ms)
uint32_t heartbeat_delay_; ///< Heartbeat delay in milliseconds.
uint32_t max_response_delay_; ///< Max delay in response to heartbeats.
uint32_t max_ack_delay_; ///< Maximum DHCP message ack delay.
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/dhcp/high_availability/ha_config_parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ HAConfigParser::parseInternal(const HAConfigPtr& config_storage,
config_storage->setSyncLeases(getBoolean(c, "sync-leases"));

// Get 'sync-timeout'.
uint16_t sync_timeout = getAndValidateInteger<uint16_t>(c, "sync-timeout");
uint32_t sync_timeout = getAndValidateInteger<uint32_t>(c, "sync-timeout");
config_storage->setSyncTimeout(sync_timeout);

// Get 'heartbeat-delay'.
Expand Down

0 comments on commit 6a20e59

Please sign in to comment.