Fix RPC client issues with talking to different nodes #611

Merged
serkixenos merged 67 commits from issue/son-for-hive-rpc-connection into develop 2021-11-30 19:14:38 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 8e4dad7593 - Show all commits

View file

@ -991,7 +991,7 @@ http_response rpc_client::send_post_request(const std::string &body, bool show_l
if (show_log) {
std::string url = client.is_ssl() ? "https" : "http";
url = url + "://" + client.host() + std::to_string(client.port()) + client.path();
url = url + "://" + client.host() + ":" + std::to_string(client.port()) + client.path();
ilog("### Request URL: ${url}", ("url", url));
ilog("### Request: ${body}", ("body", body));
std::stringstream ss(std::string(response.body.begin(), response.body.end()));

View file

@ -6,7 +6,7 @@
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <fc/network/http/connection.hpp>
//#include <fc/network/http/connection.hpp>
namespace graphene { namespace peerplays_sidechain {
@ -93,7 +93,7 @@ private:
friend class detail::http_call_impl;
friend detail::tcp_socket;
friend detail::ssl_socket;
static constexpr auto response_size_limit_bytes = 1024 * 1024 * 1024;
static constexpr auto response_size_limit_bytes = 16 * 1024 * 1024;
static constexpr auto response_first_alloc_bytes = 32 * 1024;
static constexpr auto response_next_alloc_bytes = 256 * 1024;
std::string m_host;