20 Jul
2009
20 Jul
'09
7:18 p.m.
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?