diff options
author | Misaki Shioi <[email protected]> | 2024-11-30 18:51:53 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-11-30 18:51:53 +0900 |
commit | 3d07754ee2c707343f79321b0fd358af3154709f (patch) | |
tree | ae4e05c8da3a2481bcaee53315af19bc4f0a2af9 /lib/rdoc/rdoc.rb | |
parent | fdf60d735cdfd42e11acedcb16f4b5c8b6896b38 (diff) |
Improve the conditions for clearing the Connection Attempt Delay upon connection failure (#12223)
* Improve the conditions for clearing the Connection Attempt Delay upon connection failure
This change addresses a case that was overlooked in ruby/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 members
Notes
Notes:
Merged-By: shioimm <[email protected]>
Diffstat (limited to 'lib/rdoc/rdoc.rb')
0 files changed, 0 insertions, 0 deletions