2#include <test/jtx/Env.h>
4#include <xrpld/app/misc/detail/Work.h>
5#include <xrpld/app/misc/detail/WorkSSL.h>
7#include <xrpl/basics/StringUtilities.h>
8#include <xrpl/beast/unit_test/suite.h>
10#include <boost/asio/ip/tcp.hpp>
11#include <boost/system/detail/error_code.hpp>
42 auto onFetch = [&](
error_code const& errorCode,
45 BEAST_EXPECT(!errorCode);
47 resolved_[endpoint.address().to_string()]++;
55 env_.app().getIOContext(),
71 using boost::asio::ip::tcp;
72 tcp::resolver resolver(
env_.app().getIOContext());
74 auto results = resolver.resolve(
pUrl_.domain, port);
75 auto it = results.begin();
76 auto end = results.end();
78 for (; it != end; ++it)
88 url =
"https://vl.ripple.com";
100 for (
int i = 1; i <= 4; ++i)
110 for (
int i = 0; i < 4; ++i)
std::string const & arg() const
Return the argument associated with the runner.
std::condition_variable cv_
std::map< std::string, int > resolved_
boost::asio::ip::tcp::endpoint endpoint_type
boost::system::error_code error_code
bool isMultipleEndpoints()
void makeRequest(endpoint_type const &lastEndpoint, bool lastStatus)
void run() override
Runs the suite.
std::weak_ptr< xrpl::detail::Work > work_
endpoint_type lastEndpoint_
A transaction testing environment.
boost::beast::http::response< boost::beast::http::string_body > response_type
BEAST_DEFINE_TESTSUITE_MANUAL_PRIO(CrossingLimits, app, xrpl, 10)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool parseUrl(ParsedUrl &pUrl, std::string const &strUrl)