Commit 3d07754
authored
Improve the conditions for clearing the Connection Attempt Delay upon connection failure (ruby#12223)
* Improve the conditions for clearing the Connection Attempt Delay upon connection failure
This change addresses a case that was overlooked in ruby#12087.
In the previous change, the Connection Attempt Delay was cleared at the point of a connection failure only if both of the following conditions were met:
- No other sockets were attempting a connection
- There were addresses still available to start a new connection
In this update, the second condition has been removed.
As a result, if name resolution succeeds after a connection failure and new addresses are obtained, it will be able to immediately attempt a connection to one of them.
If there are no sockets attempting a connection, no addresses available for connection, and name resolution has completed, an exception will still be raised as before.
---
Additionally, the following minor fixes have been made:
* Refactor: Remove unnecessary members1 parent fdf60d7 commit 3d07754
2 files changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | 229 | | |
231 | 230 | | |
232 | 231 | | |
| |||
601 | 600 | | |
602 | 601 | | |
603 | 602 | | |
604 | | - | |
605 | | - | |
606 | 603 | | |
607 | 604 | | |
608 | 605 | | |
| |||
620 | 617 | | |
621 | 618 | | |
622 | 619 | | |
623 | | - | |
624 | 620 | | |
625 | 621 | | |
626 | 622 | | |
| |||
1007 | 1003 | | |
1008 | 1004 | | |
1009 | 1005 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
| 1006 | + | |
1013 | 1007 | | |
1014 | 1008 | | |
1015 | 1009 | | |
| |||
1023 | 1017 | | |
1024 | 1018 | | |
1025 | 1019 | | |
| 1020 | + | |
1026 | 1021 | | |
1027 | 1022 | | |
1028 | 1023 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | | - | |
446 | 445 | | |
447 | 446 | | |
448 | 447 | | |
| |||
0 commit comments