print the DPD time.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-02-19 19:51:45 +01:00
parent a98e48b9b7
commit e9c2482e3d
+2 -2
View File
@@ -783,11 +783,11 @@ unsigned mtu_overhead, tls_mtu = 0;
now = time(0);
/* check DPD. Otherwise exit */
if (now-ws->last_dpd_udp > 3*ws->config->dpd) {
oclog(ws, LOG_ERR, "have not received UDP DPD for long");
oclog(ws, LOG_ERR, "have not received UDP DPD for long (%d secs)", (int)(now-ws->last_dpd_udp));
goto exit;
}
if (now-ws->last_dpd_tcp > 3*ws->config->dpd) {
oclog(ws, LOG_ERR, "have not received TCP DPD for long");
oclog(ws, LOG_ERR, "have not received TCP DPD for long (%d secs)", (int)(now-ws->last_dpd_tcp));
goto exit;
}
}