Discussion:
[asio-users] Working in boost 1.47.0, broken in 1.48?
Pierre Belzile
2012-02-11 00:47:57 UTC
Permalink
Two weeks ago I posted a message about a behavior change in asio in boost
1.48. Since then I have learned more about the problem and was able to
reproduce it using a simple test program that I'm attaching.

The bottom line:
* works fine in 1.47
* works fine in 1.48 when defining BOOST_ASIO_DISABLE_EPOLL
* misses messages in 1.48 with EPOLL.
Igor R
2012-02-11 18:25:51 UTC
Permalink
Post by Pierre Belzile
Two weeks ago I posted a message about a behavior change in asio in boost
1.48. Since then I have learned more about the problem and was able to
reproduce it using  a simple test program that I'm attaching.
* works fine in 1.47
* works fine in 1.48 when defining BOOST_ASIO_DISABLE_EPOLL
* misses messages in 1.48 with EPOLL.
Pierre Belzile
2012-02-13 20:25:38 UTC
Permalink
Igor,

I've wrapped all the callbacks into a "strand" instance to prevent those
multithread contention issues. It helps to keep in mind that the code
works endlessly in 1.47 or 1.48 without epoll.

Pierre

Loading...