mirror of
https://github.com/openappsec/openappsec.git
synced 2026-01-17 16:00:26 +03:00
Jan 06 2026 dev (#387)
* sync code * update code to support brotli * update code to support brotli * update code to support brotli * sync code * fix findBrotli * sync code * sync code * sync code * sync code --------- Co-authored-by: Ned Wright <nedwright@proton.me> Co-authored-by: Daniel Eisenberg <danielei@checkpoint.com>
This commit is contained in:
@@ -27,6 +27,7 @@ class I_MessagingConnection
|
||||
{
|
||||
public:
|
||||
virtual Maybe<Connection> establishConnection(const MessageMetadata &metadata, MessageCategory category) = 0;
|
||||
virtual void clearConnections() = 0;
|
||||
|
||||
virtual Maybe<Connection> getPersistentConnection(
|
||||
const std::string &host_name, uint16_t port, MessageCategory category
|
||||
|
||||
@@ -71,6 +71,7 @@ public:
|
||||
|
||||
bool setFogConnection(const std::string &host, uint16_t port, bool is_secure, MessageCategory category);
|
||||
bool setFogConnection(MessageCategory category);
|
||||
void clearConnections();
|
||||
|
||||
private:
|
||||
Maybe<Connection> getConnection(MessageCategory category, const MessageMetadata &message_metadata);
|
||||
@@ -96,6 +97,7 @@ private:
|
||||
I_MessageBuffer *i_messaging_buffer;
|
||||
I_AgentDetails *agent_details;
|
||||
bool should_buffer_failed_messages;
|
||||
std::string proxy_addr;
|
||||
TemporaryCache<std::string, HTTPResponse> fog_get_requests_cache;
|
||||
};
|
||||
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
|
||||
MOCK_METHOD3(mockSendRequest, Maybe<HTTPResponse, HTTPResponse>(Connection &, HTTPRequest, bool));
|
||||
|
||||
MOCK_METHOD0(clearConnections, void());
|
||||
MOCK_METHOD3(getPersistentConnection, Maybe<Connection>(const string &, uint16_t, MessageCategory));
|
||||
MOCK_METHOD1(getFogConnectionByCategory, Maybe<Connection>(MessageCategory));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user