mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
reduce MTU on mtu failure in a less steep way
This commit is contained in:
@@ -639,7 +639,7 @@ int mtu_not_ok(worker_st* ws)
|
||||
ws->last_bad_mtu = ws->conn_mtu;
|
||||
|
||||
if (ws->last_good_mtu >= ws->conn_mtu) {
|
||||
ws->last_good_mtu = (ws->conn_mtu)/2;
|
||||
ws->last_good_mtu = (2*(ws->conn_mtu))/3;
|
||||
|
||||
if (ws->last_good_mtu < 128) {
|
||||
oclog(ws, LOG_INFO, "could not calculate a valid MTU. Disabling DTLS.");
|
||||
|
||||
Reference in New Issue
Block a user