|
Boost Users : |
Subject: [Boost-users] [asio] async_resolve problems
From: Roman Shmelev (rshmelev_at_[hidden])
Date: 2009-07-20 15:18:56
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?
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