[shadow-support] DNS resolves in Shadow
jansen at cs.umn.edu
Mon Mar 30 12:59:18 CDT 2015
You should be able to use getaddrinfo, and it will return immediately when
called in Shadow. Shadow does intercept and handle this function here:
It is my understanding that Tor uses this function as well, and it works
fine there AFAIK.
On Mon, Mar 30, 2015 at 7:22 AM, Florian Rüchel <
florian.ruechel.tor at inexplicity.de> wrote:
> I am currently transporting mixminion over so that it can run under
> shadow (i.e. removing all threading, making it async). However, I
> currently struggle with DNS lookups. These are usually done with
> getaddrinfo but that is blocking and thus not allowed. If found
> getaddrinfo_a to be the seemingly correct solution for async DNS
> lookups. However, since I don't work with them over epoll and/or
> sockets, I am wondering if it works with shadow. That is, can I use
> getaddrinfo_a to make async DNS lookups while running under shadow? Or
> do I have to use a different solution?
> shadow-support mailing list
> shadow-support at cs.umn.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the shadow-support