Apply resource limits to proxied clients:

Resource limits were not properly applied to connections with
known IP addresses but no corresponding users.

Add unit tests for unlimited vs. limited ports.
This commit is contained in:
Mark Travis
2019-02-02 02:54:10 -08:00
committed by Nik Bougalis
parent 872478d965
commit 504b3441dd
26 changed files with 399 additions and 197 deletions

View File

@@ -28,6 +28,7 @@
#include <ripple/rpc/RPCHandler.h>
#include <ripple/app/main/CollectorManager.h>
#include <ripple/json/Output.h>
#include <boost/utility/string_view.hpp>
#include <map>
#include <mutex>
#include <vector>
@@ -180,7 +181,7 @@ private:
processRequest (Port const& port, std::string const& request,
beast::IP::Endpoint const& remoteIPAddress, Output&&,
std::shared_ptr<JobQueue::Coro> coro,
std::string forwardedFor, std::string user);
boost::string_view forwardedFor, boost::string_view user);
Handoff
statusResponse(http_request_type const& request) const;