diff --git a/cfg/rippled-example.cfg b/cfg/rippled-example.cfg index 1ae87e11f79..79de9b23041 100644 --- a/cfg/rippled-example.cfg +++ b/cfg/rippled-example.cfg @@ -1641,6 +1641,7 @@ port = 6006 ip = 127.0.0.1 admin = 127.0.0.1 protocol = ws +send_queue_limit = 500 [port_grpc] port = 50051 @@ -1651,6 +1652,7 @@ secure_gateway = 127.0.0.1 #port = 6005 #ip = 127.0.0.1 #protocol = wss +#send_queue_limit = 500 #------------------------------------------------------------------------------- diff --git a/src/ripple/json/impl/json_reader.cpp b/src/ripple/json/impl/json_reader.cpp index e4124e9bc8f..299accd84a8 100644 --- a/src/ripple/json/impl/json_reader.cpp +++ b/src/ripple/json/impl/json_reader.cpp @@ -922,10 +922,8 @@ Reader::getLocationLineAndColumn(Location location) const { int line, column; getLocationLineAndColumn(location, line, column); - constexpr std::size_t n = 18 + 16 + 16 + 1; - char buffer[n]; - snprintf(buffer, n, "Line %d, Column %d", line, column); - return buffer; + return "Line " + std::to_string(line) + ", Column " + + std::to_string(column); } std::string