thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III" <jk...@apache.org>
Subject Re: Connection to an empty IP address unexpectedly works
Date Wed, 17 Oct 2018 12:13:58 GMT
Assuming the behavior is that it connects on loopback?  You did not specify
the behavior
you are seeing.  Best guess is that your platform's getaddrinfo()
implementation treats an
empty "node" argument the same way it would treat a NULL, which means the
address
returned is suitable for local connections.

Also, you don't need to convert ipAddress to c_str() if it is already a
std::string.
The constructor takes a const string ref, so this conversion to c_str() is
totally
unnecessary.

- Jim

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message