def gethostbyname(self, *args): return self.pool.apply_e(self.expected_errors, _socket.gethostbyname, args)