Closed rthalley closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
e726115
) to head (3bf2118
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks good, but I think I'd prefer this to be a private _idle_timeout()
method?
feedback incorporated, will merge after tests pass
This applies the rules for determining the idle timeout in RFC 9000 section 10.1.
If the remote has note specified a max idle timeout, we use the configured local value as the basis, otherwise we use the smaller of the two. Given the basis timeout, we then pick the bigger of it and 3 * PTO, to avoid the value being excessively small.