mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-14 14:58:06 +08:00
readjusted log levels
This commit is contained in:
@@ -719,7 +719,7 @@ int max, e, ret;
|
|||||||
e = errno;
|
e = errno;
|
||||||
oclog(ws, LOG_INFO, "error in getting TCP_MAXSEG: %s", strerror(e));
|
oclog(ws, LOG_INFO, "error in getting TCP_MAXSEG: %s", strerror(e));
|
||||||
} else {
|
} else {
|
||||||
oclog(ws, LOG_INFO, "TCP MSS is %u", max);
|
oclog(ws, LOG_DEBUG, "TCP MSS is %u", max);
|
||||||
if (max > 0 && max-mtu_overhead < ws->conn_mtu) {
|
if (max > 0 && max-mtu_overhead < ws->conn_mtu) {
|
||||||
oclog(ws, LOG_INFO, "reducing MTU due to TCP MSS to %u", max-mtu_overhead);
|
oclog(ws, LOG_INFO, "reducing MTU due to TCP MSS to %u", max-mtu_overhead);
|
||||||
mtu_set(ws, MIN(ws->conn_mtu, max-mtu_overhead));
|
mtu_set(ws, MIN(ws->conn_mtu, max-mtu_overhead));
|
||||||
@@ -900,7 +900,7 @@ socklen_t sl;
|
|||||||
e = errno;
|
e = errno;
|
||||||
oclog(ws, LOG_INFO, "error in getting TCP_MAXSEG: %s", strerror(e));
|
oclog(ws, LOG_INFO, "error in getting TCP_MAXSEG: %s", strerror(e));
|
||||||
} else {
|
} else {
|
||||||
oclog(ws, LOG_DEBUG, "TCP MSS is %u", max);
|
oclog(ws, LOG_INFO, "TCP MSS is %u", max);
|
||||||
if (max > 0 && max-mtu_overhead < ws->conn_mtu) {
|
if (max > 0 && max-mtu_overhead < ws->conn_mtu) {
|
||||||
oclog(ws, LOG_DEBUG, "reducing MTU due to TCP MSS to %u", max-mtu_overhead);
|
oclog(ws, LOG_DEBUG, "reducing MTU due to TCP MSS to %u", max-mtu_overhead);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user