make_strand is in net::

This commit is contained in:
Vinnie Falco committed 2019-03-02 07:33:57 -08:00
1 parent dfd3752c23
commit fca4b3ae10
32 files changed
+58 -121

No files matched your search

@@ -19,6 +19,7 @@
#include <boost/beast/http.hpp>
#include <boost/beast/ssl.hpp>
#include <boost/beast/version.hpp>
#include <boost/asio/strand.hpp>
#include <cstdlib>
#include <functional>
#include <iostream>
@@ -54,8 +55,8 @@ public:
// ensure that handlers do not execute concurrently.
explicit
session(net::io_context& ioc, ssl::context& ctx)
: resolver_(beast::make_strand(ioc))
, stream_(beast::make_strand(ioc), ctx)
: resolver_(net::make_strand(ioc))
, stream_(net::make_strand(ioc), ctx)
{
}
@@ -16,6 +16,7 @@
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>
#include <boost/beast/version.hpp>
#include <boost/asio/strand.hpp>
#include <cstdlib>
#include <functional>
#include <iostream>
@@ -50,8 +51,8 @@ public:
// ensure that handlers do not execute concurrently.
explicit
session(net::io_context& ioc)
: resolver_(beast::make_strand(ioc))
, stream_(beast::make_strand(ioc))
: resolver_(net::make_strand(ioc))
, stream_(net::make_strand(ioc))
{
}
+2 -2
View File
@@ -164,8 +164,8 @@ public:
crawl_report& report,
net::io_context& ioc)
: report_(report)
, resolver_(beast::make_strand(ioc))
, stream_(beast::make_strand(ioc))
, resolver_(net::make_strand(ioc))
, stream_(net::make_strand(ioc))
{
// Set up the common fields of the request
req_.version(11);