Watch out for blocking calls to gethostbyname.  Also watch out for calls that could potentially block/deadlock