osrm-backend/src
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
..
benchmarks Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
contractor Merge branch 'master' into avoid_samelookup_in_heap_map 2020-11-26 21:29:27 +01:00
customize Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00
engine Avoid copying ManyToMany table results (#5923) 2021-01-04 08:46:51 -08:00
extractor Fix generation of inefficient MLD partitions 2021-09-03 22:48:10 +01:00
guidance Add support for multiple via-way restrictions (#5907) 2020-12-20 13:59:57 -08:00
nodejs Undo libosrm API break by adding old interface as method overload (#5861) 2021-01-27 09:14:44 -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 generation of inefficient MLD partitions 2021-09-03 22:48:10 +01:00
server Upgrade Boost to 1.70, fix inefficient connection handling 2021-09-30 22:51:12 +01:00
storage Remove redundant loading of .osrm.cell_metrics 2021-04-24 21:19:27 +01:00
tools 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 Upgrade formatting to clang-format 10 (#5895) 2020-11-26 07:21:39 -08:00