sync code

This commit is contained in:
Ned Wright
2024-12-29 12:13:27 +00:00
parent 96ce290e5f
commit 64ebf013eb
43 changed files with 1058 additions and 406 deletions

View File

@@ -57,6 +57,7 @@ unsigned int getResBodyThreadTimeout();
unsigned int getMinRetriesForVerdict();
unsigned int getMaxRetriesForVerdict();
unsigned int getReqBodySizeTrigger();
unsigned int getRemoveResServerHeader();
unsigned int getWaitingForVerdictThreadTimeout();

View File

@@ -228,6 +228,18 @@ public:
return sni_host_name;
}
void
setDnHostName(const std::string &_dn_host_name)
{
dn_host_name = _dn_host_name;
}
Maybe<std::string>
getDnHostName() const
{
return dn_host_name;
}
void
setRateLimitBlock(uint block_time)
{
@@ -273,6 +285,7 @@ public:
private:
std::string host_name = "";
Maybe<std::string> sni_host_name = genError("SNI host name not set");
Maybe<std::string> dn_host_name = genError("DN host name not set");
std::string ca_path = "";
std::string client_cert_path = "";
std::string client_key_path = "";

View File

@@ -47,6 +47,7 @@
#include "buffer.h"
#include "intelligence_comp_v2.h"
#include "messaging.h"
#include "env_details.h"
USE_DEBUG_FLAG(D_COMP_IS);
@@ -233,6 +234,7 @@ class ComponentListCore
MemoryCalculator,
TenantManager,
GenericRulebase,
EnvDetails,
Components...
>
{

View File

@@ -18,12 +18,14 @@
#include "i_mainloop.h"
#include "singleton.h"
#include "component.h"
#include "i_time_get.h"
class SocketIS
:
public Component,
Singleton::Provide<I_Socket>,
Singleton::Consume<I_MainLoop>
Singleton::Consume<I_MainLoop>,
Singleton::Consume<I_TimeGet>
{
public:
SocketIS();