[Boost-bugs] [Boost C++ Libraries] #3095: bug in automatic resizing of the bucket array

Subject: [Boost-bugs] [Boost C++ Libraries] #3095: bug in automatic resizing of the bucket array
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-27 03:13:15


#3095: bug in automatic resizing of the bucket array
------------------------------------+---------------------------------------
 Reporter: roger.ran_at_[hidden] | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: asio
  Version: Boost 1.39.0 | Severity: Regression
 Keywords: |
------------------------------------+---------------------------------------
 we have many stable server application that runs on Windows and using asio
 IOCP model (boost 1.38.0)

 e.g. One of it always handles 500+ incoming connections and for each
 connection it will create a new local network connection to a database
 server. It runs very stable for weeks. the stats shows that the incoming
 connection number is 500 and the outgoing connections is about 5 (the
 local network runs much faster).

 However, after upgrade to boost 1.39.0, they do not work any more!
 it always stop working after a few minutes of startup. The stats shows
 that the incoming connection number is 500 and the outgoing connections
 keep increasing from 1 to 300+.

 We roll back to asio in boost 1.38.0, it works again.

 Thus, I apply all the asio patches between 1.38.0 and 1.39.0 one by one
 and find out that this is caused by the Changeset [52292].

 Now I am using the 1.39.0 but add one line to disable the auto resize
 feature

 #define BOOST_ASIO_HASH_MAP_BUCKETS 1021

 Now every thing runs very well. So there must be some bug in the bug in
 automatic resizing function.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3095>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:00 UTC