Boost C++ Libraries: Ticket #8937: boost::asio::ip::tcp 5000ms stall https://svn.boost.org/trac10/ticket/8937 <p> Under certain circumstances, the boost::asio::ip::tcp module exhibits a, with a bit of patience, reproducible behavior of every now and then stalling for quite exactly 5000ms. </p> <p> On May 02, 2011, a discussion about this was started by Torben Wiggerich on the Boost Mailing List: <a class="ext-link" href="http://boost.2283326.n4.nabble.com/asio-Randomly-having-problems-reading-from-the-socket-td3490016.html"><span class="icon">​</span>http://boost.2283326.n4.nabble.com/asio-Randomly-having-problems-reading-from-the-socket-td3490016.html</a> </p> <p> On May 09, 2011, a traffic dump was requested by Cliff Green. </p> <p> I ran into the problem some time later and posted a traffic dump on Apr 02, 2012. No one has replied since. </p> <p> Today, I tested whether the issue still persists with </p> <p> Boost 1.49.0 Boost 1.53.0 Boost 1.54.0 </p> <p> and it still occurs with all of them. </p> <p> For the CPU I used an Intel Core2 Duo P7350 @ 2.0 GHz, because this bug is only reproducible in a reasonable time frame (under 1 hour) on a sufficiently slow computer. Back then I used an Athlon X2 4400+. An i7 will be too fast to show this behavior reliably, or in a reasonable amount of time, or maybe even ever. </p> <p> The operating system used was Windows 7 x64 SP1. </p> <p> The compiler used was Visual Studio 2008 SP1 x86 + all updates from Windows Update. </p> <p> I attached a Repro Case based on the code posted by Torben in the Thread. With this, on the Core2Duo I used, the behavior was repeatedly observable in under an hour of Server + Client running. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8937 Trac 1.4.3 Florian George <fgeorge@…> Mon, 29 Jul 2013 17:50:46 GMT attachment set https://svn.boost.org/trac10/ticket/8937 https://svn.boost.org/trac10/ticket/8937 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Boost5000msReproCase.zip</span> </li> </ul> Ticket anonymous Tue, 24 Sep 2013 18:18:06 GMT <link>https://svn.boost.org/trac10/ticket/8937#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8937#comment:1</guid> <description> <p> I have also seen the same problem in my own testing where there is a pause of exactly 5 seconds where no more TCP traffic is received by a tcp socket. I am not sure if the delay is on the sending or receiving side. The problem seems more likely to occur when sending larger amounts of data (~400k) in a single async_write call. </p> <p> In my testing I was using Boost 1.48.0. The problem only occurs for me in Windows 7 (compiled with MSVC 2010) and not in Ubuntu 12.04 (compiled with gcc 4.6.3). </p> </description> <category>Ticket</category> </item> </channel> </rss>