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 |
||
|---|---|---|
| .. | ||
| http | ||
| api_grammar.hpp | ||
| connection.hpp | ||
| request_handler.hpp | ||
| request_parser.hpp | ||
| server.hpp | ||