clone and gai_error. (cherry picked from commit ecfa005085) (cherry picked from commit c8f34dbca6)
ecfa005085
c8f34dbca6