osrm-backend/include/server
Daniel J. Hofmann e7d9e42a16 Fix race condition in osrm-routed HTTP server
We had a similar issue a few month ago. Stumbled upon this by accident.

It goes like this:

- `output_buffer` is function-local
- we pass it to async_write and leave the scope
- `output_buffers` goes out of scope
- bad things happen, sometimes

The fix is to, again, put it inside the connection that handles itself
via the enable_shared_from_this idiom.

References:

- http://www.boost.org/doc/libs/1_59_0/doc/html/boost_asio/reference/async_write/overload1.html
- https://github.com/Project-OSRM/osrm-backend/pull/1690
2016-01-13 23:21:45 +01:00
..
http Run clang-format 2016-01-08 01:31:57 +01:00
api_grammar.hpp Run clang-format 2016-01-08 01:31:57 +01:00
connection.hpp Fix race condition in osrm-routed HTTP server 2016-01-13 23:21:45 +01:00
request_handler.hpp Run clang-format 2016-01-08 01:31:57 +01:00
request_parser.hpp Run clang-format 2016-01-08 01:31:57 +01:00
server.hpp Run clang-format 2016-01-08 01:31:57 +01:00