On Mon, Jul 20, 2009 at 12:18 PM, Roman Shmelev
Hi!
I've written _test_ dummy service, working in single thread (prototype for more useful app). It accepts strings like "google.com" (and "gosdkfjslfjle.com"), resolves them and returns ip of the host.
I noticed, that bad hostnames make it think too much, preventing other requests from being processed. So, I decided to use async_resolve approach, hoping that now I will be able to handle many requests concurrently. But it seems that async_resolve is not as async as desired - it feels like separate thread resolves in sync way all hosts.
The question is - how to make async_resolve be really async? Am I missing something?
What asio really needs is a DNS library. Some OSes don't have any async DNS support, so its only option right now is to serialize requests. -- Cory Nelson http://int64.org