ccapi: Upgrade to v5.31.2

This commit is contained in:
John Colvin committed 2022-09-08 11:16:15 -04:00
1 parent b91431e518
commit 7a3fae62c3
32 files changed
+203 -17

No files matched your search

@@ -60,6 +60,10 @@ using tcp = boost::asio::ip::tcp;
namespace wspp = websocketpp;
namespace rj = rapidjson;
namespace ccapi {
/**
* Defines a service which provides access to exchange API and normalizes them. This is a base class that implements generic functionalities for dealing with
* exchange REST and Websocket APIs. The Session object is responsible for routing requests and subscriptions to the desired concrete service.
*/
class Service : public std::enable_shared_from_this<Service> {
public:
typedef wspp::lib::shared_ptr<ServiceContext> ServiceContextPtr;
@@ -361,6 +365,9 @@ class Service : public std::enable_shared_from_this<Service> {
}
CCAPI_LOGGER_TRACE("connected");
beast::ssl_stream<beast::tcp_stream>& stream = *httpConnectionPtr->streamPtr;
// #ifdef CCAPI_DISABLE_NAGLE_ALGORITHM
beast::get_lowest_layer(stream).socket().set_option(tcp::no_delay(true));
// #endif
CCAPI_LOGGER_TRACE("before async_handshake");
stream.async_handshake(ssl::stream_base::client,
beast::bind_front_handler(&Service::onHandshake, shared_from_this(), httpConnectionPtr, req, errorHandler, responseHandler));
@@ -467,6 +474,9 @@ class Service : public std::enable_shared_from_this<Service> {
}
CCAPI_LOGGER_TRACE("connected");
beast::ssl_stream<beast::tcp_stream>& stream = *httpConnectionPtr->streamPtr;
// #ifdef CCAPI_DISABLE_NAGLE_ALGORITHM
beast::get_lowest_layer(stream).socket().set_option(tcp::no_delay(true));
// #endif
CCAPI_LOGGER_TRACE("before async_handshake");
stream.async_handshake(ssl::stream_base::client,
beast::bind_front_handler(&Service::onHandshake_2, shared_from_this(), httpConnectionPtr, request, req, retry, eventQueuePtr));