Commit 65f0b396 authored by Jeremy Harris's avatar Jeremy Harris

decrease sensitivity of auto-wscale decrement heuristic

parent b354ac2f
......@@ -308,6 +308,7 @@ typedef struct tcb {
seqnum syn;
seqnum fin;
seqnum windowend;
seqnum windowend_max;
timeval time;
/* TCP options */
......
......@@ -2790,7 +2790,7 @@ nextrpc:
if (eff_win != 0 && thisdir->tcpw_auto)
{
if (winend < old_this_windowend)
if (winend < thisdir->windowend_max)
if (thisdir->tcpw_hold)
thisdir->tcpw_hold--;
else
......@@ -2801,10 +2801,11 @@ nextrpc:
char buf[16];
snprintf(buf, sizeof(buf), "wscale->%d", --thisdir->tcpw);
plotter_text(to_tsgpl, current_time, SeqRep(otherdir,winend), "a", buf);
thisdir->tcpw_hold = 16;
thisdir->tcpw_hold = 32;
}
else
plotter_text(to_tsgpl, current_time, SeqRep(otherdir,winend), "a", "!");
thisdir->windowend_max = winend;
}
else if (SEQ_GREATERTHAN(otherdir->seq, winend))
......@@ -2815,8 +2816,13 @@ nextrpc:
plotter_temp_color(to_tsgpl, retrans_color);
snprintf(buf, sizeof(buf), "wscale->%d", ++thisdir->tcpw);
plotter_text(to_tsgpl, current_time, SeqRep(otherdir,winend), "a", buf);
thisdir->tcpw_hold = 8;
}
thisdir->windowend_max = winend;
}
else
{
if (thisdir->tcpw_hold < 32) thisdir->tcpw_hold++;
thisdir->windowend_max = winend;
}
}
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment