Subject: [Boost-bugs] [Boost C++ Libraries] #11964: asio async_resolve cannot be cancelled
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-08 09:53:07
#11964: asio async_resolve cannot be cancelled
-------------------------------------------+----------------------------
Reporter: sven_nilsson@⦠| Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.59.0 | Severity: Problem
Keywords: asio asynchronous DNS resolve |
-------------------------------------------+----------------------------
The asio '''async_resolve''' (both the udp and tcp resolver) is
incorrectly implemented (on win32) as a '''synchronous resolve'''
performed in a thread.
This has the unfortunate effect that, when the DNS server is not
responding, the application will hang for ~20 seconds. The DNS operation
is ongoing in the io_service, and thus the io_service destructor must wait
for the thread to finish. I tried several methods in an effort to cancel
it, but none worked.
Since the average user has approximately 5 seconds of patience with a non-
responding application before killing it with task manager, I really think
this needs to be fixed.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11964> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC