When I configured my gentoo server to update portage via rsync proxy, I got the following error mesages:
Servname not supported for ai_socktype
This was caused by the miss configured RSYNC_PROXY variable. After removing the protocol scheme part from the proxy url, I figured out this problem.
by modifing the variable