Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] SSL async_shutdown() never finishes if called when async_read_some() is in progress
From: Richard Hodges (hodges.r_at_[hidden])
Date: 2018-04-06 14:21:44


On Fri, 2018-04-06 at 09:11 -0400, Alexander D. via Boost-users wrote:
> > > The only solution I can think of would be to cancel the read
> > > operation, but there's no portable way in asio to do this.
> >
> > sock.next_layer().cancel();
> >
> > ?
>
> Per ASIO Reference:
>
> "Calls to cancel() will always fail with
> boost::asio::error::operation_not_supported when run on Windows XP,
> Windows Server 2003, and earlier versions of Windows, unless
> BOOST_ASIO_ENABLE_CANCELIO is defined. However, the CancelIo function
> has two issues that should be considered before enabling its use:
> ..."
>
> which renders cancel() non-portable.

Is anyone still developing for windows xp? It's portable enough in
reality, surely?

> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users



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