This bug arrived with this commit:
MINOR: quic: Add a max window parameter to congestion control algorithms
The documentation was been modified with missing/wrong modifications in the code part.
The 'g' suffix must be accepted to parse value in gigabytes. And exctly 4g is
also accepted.
No need to backport.
end_opt++;
}
else if (*end_opt == 'g') {
- memprintf(err, "'%s' : should be smaller than 1g", args[cur_arg + 1]);
- goto fail;
+ cwnd <<= 30;
+ end_opt++;
}
if (*end_opt != ')') {
goto fail;
}
- if (cwnd < 10240 || cwnd >= (4UL << 30)) {
+ if (cwnd < 10240 || cwnd > (4UL << 30)) {
memprintf(err, "'%s' : should be greater than 10k and smaller than 4g", args[cur_arg + 1]);
goto fail;
}