Commit b1ef37e
c3d1c06c-bf26-477e-b0eb-c50ef4477ba6
improve (stabilize) server rtt computation
prevent sporadic outliers from heavily affecting the server rtt
e.g. the new scoring system stops considering the server rtt when it's over 1s: just because a fast server has 2 slow responses in a row shouldn't put it in the bad server category
on the other hand this change still allows to adapt to actual slowdowns quite quickly1 parent d44b0e3 commit b1ef37e
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
1175 | 1186 | | |
1176 | 1187 | | |
1177 | 1188 | | |
0 commit comments