Random EOF in boost asio in multi thread

前端 未结 2 1635
耶瑟儿~
耶瑟儿~ 2021-01-22 12:55

I am quite new to boost asio and I am experiencing random End of File in a multi threaded server.

I could reproduce my problem in this small example:

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-22 13:13

    This is a bug of boost::asio 1.54.0

    I found two similar threads on the internet:

    • this one.
    • and that one (on stack overflow).

    There is also a bug report here.

    I installed boost 1.53 and it is now working just fine.

提交回复
热议问题