unknown
1970-01-01 00:00:00 UTC
To run this program, you start an instance with argument "s" (server) and
on the same machine another instance with argument "c" (client). After a
few iterations, the client always dies in my environment with the message:
terminate called after throwing an instance of 'std::runtime_error'
what(): Client::read_reply, unexpected: Connection reset by peer
This message occurs on the client side as my inactivity timer on the server
side closes the connection because the callback has not occurred within the
allowed 10 seconds.
My environment:
* Linux 2.6.32-131.21.1.el6.x86_64 #1 SMP Tue Nov 22 14:15:09 CST 2011
x86_64 x86_64 x86_64 GNU/Linux
* gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC)
* quad dual core
I compile with:
g++ -O3 -I /usr/local/boost_1.48.0/include test.cc -L
/usr/local/boost_1.48.0/lib64 -l boost_system-mt -l boost_thread-mt
--0015174763a8af97f504b8a59806
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div class="gmail_quote">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.<div>
<br></div>
<div>The bottom line:</div><div>* works fine in 1.47</div><div>* works fine in 1.48 when defining BOOST_ASIO_DISABLE_EPOLL</div><div>* misses messages in 1.48 with EPOLL.</div><div><br></div><div>
on the same machine another instance with argument "c" (client). After a
few iterations, the client always dies in my environment with the message:
terminate called after throwing an instance of 'std::runtime_error'
what(): Client::read_reply, unexpected: Connection reset by peer
This message occurs on the client side as my inactivity timer on the server
side closes the connection because the callback has not occurred within the
allowed 10 seconds.
My environment:
* Linux 2.6.32-131.21.1.el6.x86_64 #1 SMP Tue Nov 22 14:15:09 CST 2011
x86_64 x86_64 x86_64 GNU/Linux
* gcc version 4.4.5 20110214 (Red Hat 4.4.5-6) (GCC)
* quad dual core
I compile with:
g++ -O3 -I /usr/local/boost_1.48.0/include test.cc -L
/usr/local/boost_1.48.0/lib64 -l boost_system-mt -l boost_thread-mt
--0015174763a8af97f504b8a59806
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div class="gmail_quote">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.<div>
<br></div>
<div>The bottom line:</div><div>* works fine in 1.47</div><div>* works fine in 1.48 when defining BOOST_ASIO_DISABLE_EPOLL</div><div>* misses messages in 1.48 with EPOLL.</div><div><br></div><div>