mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
Changed logging levels to reduce noise.
This commit is contained in:
@@ -907,7 +907,7 @@ void vpn_server(struct worker_st *ws)
|
||||
if (nrecvd == 0)
|
||||
goto finish;
|
||||
if (nrecvd != GNUTLS_E_PREMATURE_TERMINATION)
|
||||
oclog(ws, LOG_ERR,
|
||||
oclog(ws, LOG_WARNING,
|
||||
"error receiving client data");
|
||||
exit_worker(ws);
|
||||
}
|
||||
@@ -1261,7 +1261,7 @@ int periodic_check(worker_st * ws, struct timespec *tnow, unsigned dpd)
|
||||
|
||||
if (ws->user_config->session_timeout_secs > 0) {
|
||||
if (now - ws->session_start_time > ws->user_config->session_timeout_secs) {
|
||||
oclog(ws, LOG_ERR,
|
||||
oclog(ws, LOG_NOTICE,
|
||||
"session timeout reached for process (%d secs)",
|
||||
(int)(now - ws->session_start_time));
|
||||
terminate = 1;
|
||||
@@ -1286,7 +1286,7 @@ int periodic_check(worker_st * ws, struct timespec *tnow, unsigned dpd)
|
||||
if (DTLS_ACTIVE(ws)->udp_state == UP_ACTIVE &&
|
||||
now - ws->last_msg_udp > DPD_TRIES * dpd && dpd > 0) {
|
||||
unsigned data_mtu = DATA_MTU(ws, ws->link_mtu);
|
||||
oclog(ws, LOG_ERR,
|
||||
oclog(ws, LOG_NOTICE,
|
||||
"have not received any UDP message or DPD for long (%d secs, DPD is %d)",
|
||||
(int)(now - ws->last_msg_udp), dpd);
|
||||
|
||||
@@ -1303,7 +1303,7 @@ int periodic_check(worker_st * ws, struct timespec *tnow, unsigned dpd)
|
||||
}
|
||||
}
|
||||
if (dpd > 0 && now - ws->last_msg_tcp > DPD_TRIES * dpd) {
|
||||
oclog(ws, LOG_DEBUG,
|
||||
oclog(ws, LOG_NOTICE,
|
||||
"have not received TCP DPD for long (%d secs)",
|
||||
(int)(now - ws->last_msg_tcp));
|
||||
ws->buffer[0] = 'S';
|
||||
@@ -1319,7 +1319,7 @@ int periodic_check(worker_st * ws, struct timespec *tnow, unsigned dpd)
|
||||
CSTP_FATAL_ERR_CMD(ws, ret, exit_worker_reason(ws, REASON_ERROR));
|
||||
|
||||
if (now - ws->last_msg_tcp > DPD_MAX_TRIES * dpd) {
|
||||
oclog(ws, LOG_ERR,
|
||||
oclog(ws, LOG_NOTICE,
|
||||
"connection timeout (DPD); tearing down connection");
|
||||
exit_worker_reason(ws, REASON_DPD_TIMEOUT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user