Subject: [Boost-bugs] [Boost C++ Libraries] #10906: async_connect can't be stopped on boost 1.57, win 7 64bit
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-12-29 16:05:27
#10906: async_connect can't be stopped on boost 1.57, win 7 64bit
--------------------------------------+----------------------------
Reporter: anonymous | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: Boost 1.58.0 | Component: asio
Version: Boost 1.57.0 | Severity: Regression
Keywords: boost asio async_connect |
--------------------------------------+----------------------------
I currently use Windows 7 64bit, MSVC2010 and Boost.Asio 1.57. I would
like to connect to a TCP server with a timeout. If the timeout expires, I
should close the connection as soon as possible as the IP address (chosen
by a user) is probably wrong.
With my computer, closing the socket takes about 15 seconds to complete,
which makes my program not responsive for a while.
On Linux the same code seems to be fine.
I attach a code that reproduce the problem.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10906> 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:17 UTC