osrm-backend/include
Michael Bell 56a427f839 Upgrade Boost to 1.70, fix inefficient connection handling
A request to osrm-routed can be assigned to a thread which
is currently busy processing another request, even when there
are other threads/cores available. This unnecessarily delays
the response, and can make requests appear to hang when
awaiting CPU intensive requests to finish.

The issue looks like a bug in Boost.Asio multithreaded
networking stack.

osrm-routed server implementation is
heavily influenced by the HTTP server 3 example in the
Boost.Asio docs. By upgrading to Boost 1.70 and updating the
server connections to match the example provided in the 1.70
release, the problem is resolved.

The diff of the changes to the Boost.Asio stack are
vast, so it's difficult to identify the exact cause. However
the implementation change is to push the strand of execution
into the socket (and timer) objects, which suggests it could
fix the type of threading issue we are observing.
2021-09-30 22:51:12 +01:00
..
contractor Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
customizer Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
engine Reduce copying in API parameter constructors 2021-01-06 23:15:35 +00:00
extractor Increase PackedOSMIDs size to 34 bits 2021-04-24 23:41:02 +01:00
guidance Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
nodejs Validate source/destination indices correctly in nodejs support (#5595) 2021-01-28 06:02:01 -08:00
osrm Undo libosrm API break by adding old interface as method overload (#5861) 2021-01-27 09:14:44 -08:00
partitioner Fix metric offset overflow for large MLD partitions (#6124) 2021-09-21 19:25:30 +01:00
server Upgrade Boost to 1.70, fix inefficient connection handling 2021-09-30 22:51:12 +01:00
storage Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
updater Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
util Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00