Random EOF in boost asio in multi thread

前端 未结 2 1634
耶瑟儿~
耶瑟儿~ 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条回答
  • 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.

    0 讨论(0)
  • 2021-01-22 13:38

    This issue was a regression and has been fixed in Boost 1.55: http://www.boost.org/users/history/version_1_55_0.html

    0 讨论(0)
提交回复
热议问题