Re: [Boost-bugs] [Boost C++ Libraries] #7198: win_iocp_io_service::shutdown_service() wrongly calls win_iocp_operation::destroy() sometimes

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7198: win_iocp_io_service::shutdown_service() wrongly calls win_iocp_operation::destroy() sometimes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-29 09:10:28


#7198: win_iocp_io_service::shutdown_service() wrongly calls
win_iocp_operation::destroy() sometimes
--------------------------------------------------------+-------------------
  Reporter: Peter Jakubco <peter.jakubco@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------------+-------------------

Comment (by chris_kohlhoff):

 Your proposed resolution is not valid. As noted on the MSDN page you
 linked to, !GetQueuedCompletionStatus also returns false if it
 successfully dequeues a completion packet but the operation associated
 with that completion packet was itself unsuccessful.

 The real problem is probably that !WriteFile has failed immediately with a
 specific error code (returned by !GetLastError) that still results in a
 completion packet being queued, but asio does not recognise it as such.
 Please let me know the error code associated with the failed !WriteFile
 call.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7198#comment:2>
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:11 UTC