boost asio死锁一例

socket close -> sendmessage -> io_service stop

先关闭socket句柄,再给windows窗口发送消息,然后io_service停止。

当sendmessage发送消息后,会和io_service造成死锁,估计原因io_service内部实现阻塞了windows某对象。

原文地址:https://www.cnblogs.com/wjx0912/p/7399040.html