UBF is also required for synchronous name resolution (#12156)
rb_thread_call_without_gvl2 is used to wait for the results of name resolution and connection attempts.
When there is only one address family to resolve, the necessary resources were not being passed to the UBF.
With this change, the handling of resources has been revised and organized to work consistently, whether there are two address families to resolve or only one.
UBF is also required for synchronous name resolution (#12156)
rb_thread_call_without_gvl2
is used to wait for the results of name resolution and connection attempts.When there is only one address family to resolve, the necessary resources were not being passed to the UBF.
With this change, the handling of resources has been revised and organized to work consistently, whether there are two address families to resolve or only one.