|
Boost Users : |
Subject: Re: [Boost-users] [asio] async_resolve problems
From: Cory Nelson (phrosty_at_[hidden])
Date: 2009-07-20 16:06:23
On Mon, Jul 20, 2009 at 12:18 PM, Roman Shmelev<rshmelev_at_[hidden]> wrote:
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net