We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The example below will crash with Boost.Async
#include <boost/asio.hpp> #include <boost/async.hpp> #include <boost/redis.hpp> #include <iostream> #include <boost/redis/src.hpp> namespace async = boost::async; namespace asio = boost::asio; using boost::redis::request; using boost::redis::response; using boost::redis::config; using boost::redis::connection; async::detached run(std::shared_ptr<connection> conn) { co_await conn->async_run({}, {}, async::use_op); } async::main co_main(int argc, char **argv) { auto conn = std::make_shared<connection>(co_await async::this_coro::executor); run(conn); request req; req.push("PING", "Hello world"); response<std::string> resp; co_await conn->async_exec(req, resp, async::use_op); conn->cancel(); std::cout << "PING: " << std::get<0>(resp).value() << std::endl; co_return 0; }
Output:
debian2[0]$ ./example/boost_async_example_http (Boost.Redis) Resolve results: 127.0.0.1:6379 (Boost.Redis) Connected to endpoint: 127.0.0.1:6379 (Boost.Redis) Bytes written: 140 (Boost.Redis) Hello: Success PING: Hello world (Boost.Redis) Connection lost: Operation canceled munmap_chunk(): invalid pointer Aborted
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The example below will crash with Boost.Async
Output:
The text was updated successfully, but these errors were encountered: