set timeout on socket.gethostbyname