Commit 7bb2506
authored
Use configured connect timeout when retries is none (#1777)
Motivation:
The connection manager uses an iterator to get values for the connect
timeout and the backoff to use if the connection attempt fails. Backoff
can also be configured to have a limited number of tries. This controls
when the iterator returns `nil`. If the connection attempt retries are
disabled then the iterator always returns `nil`. This is an issue
because the connection manager doesn't respect the configured connect
timeout as the iterator doesn't return a value.
Modifications:
Check when starting a connection attempt from the idle state whether
there a connect timeout is configured if there are no retries. This
Result:
The connect timeout value is repected if the connection retries aren't
enabled.1 parent 9499327 commit 7bb2506
File tree
2 files changed
+69
-3
lines changed- Sources/GRPC
- Tests/GRPCTests
2 files changed
+69
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1014 | 1026 | | |
1015 | 1027 | | |
1016 | | - | |
| 1028 | + | |
| 1029 | + | |
1017 | 1030 | | |
1018 | 1031 | | |
1019 | 1032 | | |
| |||
1039 | 1052 | | |
1040 | 1053 | | |
1041 | 1054 | | |
1042 | | - | |
| 1055 | + | |
| 1056 | + | |
1043 | 1057 | | |
1044 | 1058 | | |
1045 | 1059 | | |
| |||
1048 | 1062 | | |
1049 | 1063 | | |
1050 | 1064 | | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
1051 | 1072 | | |
1052 | 1073 | | |
1053 | 1074 | | |
1054 | | - | |
| 1075 | + | |
1055 | 1076 | | |
1056 | 1077 | | |
1057 | 1078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1357 | 1357 | | |
1358 | 1358 | | |
1359 | 1359 | | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
1360 | 1405 | | |
1361 | 1406 | | |
1362 | 1407 | | |
| |||
0 commit comments