Boost logo

Boost :

From: Ronald Garcia (garcia_at_[hidden])
Date: 2005-12-29 13:11:20

Hi Chris,

> Actually come to think of it, I'm not sure if the DNS thread
> safety problem is in 10.3. I know it was in 10.1 and 10.2, and
> is not in 10.4. Can you have a look at the man page for
> gethostbyname and see if it says anything about thread safety,
> possibly under "BUGS"?

Here is the text you asked about:
      These functions use static data storage; if the data is needed for
      use, it should be copied before any subsequent calls overwrite it.
      the Internet address format is currently understood.

> If necessary, this limitation can also be worked around for 10.3
> by adding a wrapper around all DNS calls that uses a mutex to
> ensure that only one call to the underlying functions is made at
> a time.

That is what I expected. Thanks for the confirmation.


Boost list run by bdawes at, gregod at, cpdaniel at, john at