Thanks all responses, after searching from Internet, it seems many people have asked for udp socket sync receive timeout, the issue has been around for many years https://svn.boost.org/trac/boost/ticket/2832. Anyway, I am giving up sync approach and I am going to change my program to use async receive.

Thank you all for your helpful comments.

On Thu, Apr 13, 2017 at 11:26 PM, TONGARI J via Boost-users <boost-users@lists.boost.org> wrote:
2017-04-13 19:00 GMT+08:00 Bjorn Reese via Boost-users <boost-users@lists.boost.org>:
On 04/13/2017 05:06 AM, TONGARI J via Boost-users wrote:

act <https://github.com/jamboree/act>:

I am intrigued by your act::detail::move_wrapper and especially
the "somewhat requires" comment. Does that mean that Asio checks
for CopyConstructible, but does not actually copy the handler?

Yes. I think the standalone ASIO has relaxed the restriction.

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users