.\"/*
-.\" * Copyright (C) 2016-2019 Red Hat, Inc.
+.\" * Copyright (C) 2016-2020 Red Hat, Inc.
.\" *
.\" * All rights reserved.
.\" *
.\" * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
.\" * THE POSSIBILITY OF SUCH DAMAGE.
.\" */
-.TH COROSYNC-QNETD 8 2019-08-12
+.TH COROSYNC-QNETD 8 2020-09-15
.SH NAME
corosync-qnetd \- QNet daemon
.SH SYNOPSIS
Dead peer detection enabled. (on)
.TP
.B dpd_interval
-How often the DPD algorithm detects dead peers in ms. (10000)
+How often the DPD algorithm detects dead peers in ms. (1000)
.TP
.B lock_file
Lock file location. (/var/run/corosync-qnetd/corosync-qnetd.pid)
/*
- * Copyright (c) 2015-2016 Red Hat, Inc.
+ * Copyright (c) 2015-2020 Red Hat, Inc.
*
* All rights reserved.
*
#define QNETD_MIN_HEARTBEAT_INTERVAL 1
#define QNETD_DEFAULT_DPD_ENABLED 1
-#define QNETD_DEFAULT_DPD_INTERVAL (10*1000)
+#define QNETD_DEFAULT_DPD_INTERVAL (1*1000)
#define QNETD_MIN_DPD_INTERVAL 1
#define QNETD_DEFAULT_LOCK_FILE LOCALSTATEDIR"/run/corosync-qnetd/corosync-qnetd.pid"
client->dpd_time_since_last_check += instance->advanced_settings->dpd_interval;
- if (client->dpd_time_since_last_check > (client->heartbeat_interval * 2)) {
+ if (client->dpd_time_since_last_check > client->heartbeat_interval * 1.2) {
if (!client->dpd_msg_received_since_last_check) {
log(LOG_WARNING, "Client %s doesn't sent any message during "
"%"PRIu32"ms. Disconnecting",