fix gethostbyname block problem