#include <PortCfg.h>
Public Types | |
typedef RefCount< CodeContext > | Pointer |
Public Member Functions | |
PortCfg () | |
PortCfg (PortCfg &&)=delete | |
~PortCfg () override | |
PortCfg * | ipV4clone () const |
creates the same port configuration but listening on any IPv4 address More... | |
ScopedId | codeContextGist () const override |
std::ostream & | detailCodeContext (std::ostream &os) const override |
appends human-friendly context description line(s) to a cache.log record More... | |
Static Public Member Functions | |
static const Pointer & | Current () |
static void | Reset () |
forgets the current context, setting it to nil/unknown More... | |
static void | Reset (const Pointer) |
changes the current context; nil argument sets it to nil/unknown More... | |
Public Attributes | |
PortCfgPointer | next |
Ip::Address | s |
AnyP::ProtocolVersion | transport |
transport protocol and version received by this port More... | |
char * | name |
char * | defaultsite |
TrafficMode | flags |
flags indicating what type of traffic to expect via this port. More... | |
bool | allow_direct |
Allow direct forwarding in accelerator mode. More... | |
bool | vhost |
uses host header More... | |
bool | actAsOrigin |
update replies to conform with RFC 2616 More... | |
bool | ignore_cc |
Ignore request Cache-Control directives. More... | |
bool | connection_auth_disabled |
Don't support connection oriented auth. More... | |
bool | ftp_track_dirs |
whether transactions should track FTP directories More... | |
int | vport |
virtual port support. -1 if dynamic, >0 static More... | |
int | disable_pmtu_discovery |
bool | workerQueues |
whether listening queues should be worker-specific More... | |
Comm::TcpKeepAlive | tcp_keepalive |
Comm::ConnectionPointer | listenConn |
Security::ServerOptions | secure |
TLS configuration options for this listening port. More... | |
Stopwatch | busyTime |
time spent in this context (see also: busy_time) More... | |
Private Member Functions | |
PortCfg (const PortCfg &other) | |
Static Private Member Functions | |
static void | ForgetCurrent () |
static void | Entering (const Pointer &codeCtx) |
static void | Leaving () |
Detailed Description
Member Typedef Documentation
◆ Pointer
|
inherited |
Definition at line 55 of file CodeContext.h.
Constructor & Destructor Documentation
◆ PortCfg() [1/3]
AnyP::PortCfg::PortCfg | ( | ) |
Definition at line 28 of file PortCfg.cc.
◆ PortCfg() [2/3]
|
delete |
◆ ~PortCfg()
|
override |
Definition at line 48 of file PortCfg.cc.
References Comm::IsConnOpen(), and safe_free.
◆ PortCfg() [3/3]
|
explicitprivate |
Definition at line 59 of file PortCfg.cc.
References assert, listenConn, and next.
Member Function Documentation
◆ codeContextGist()
|
overridevirtual |
- Returns
- a small, permanent ID of the current context gists persist forever and are suitable for passing to other SMP workers
Implements CodeContext.
Definition at line 95 of file PortCfg.cc.
◆ Current()
|
staticinherited |
- Returns
- the known global context or, to indicate unknown context, nil
Definition at line 33 of file CodeContext.cc.
References Instance().
Referenced by CallSubscription< Call_ >::callback(), CallBack(), CallContextCreator(), clientConnectionsClose(), clientHttpConnectionsOpen(), commStartHalfClosedMonitor(), CurrentCodeContextDetail(), HappyOrderEnforcer::enqueue(), CommQuotaQueue::enqueue(), StoreEntry::invokeHandlers(), Security::KeyLog::record(), CodeContext::Reset(), ScheduleCall(), Ftp::StartListening(), Ftp::StopListening(), tunnelDelayedClientRead(), and tunnelDelayedServerRead().
◆ detailCodeContext()
|
overridevirtual |
◆ Entering()
|
staticprivateinherited |
Switches the current context to the given known context. Improves debugging output by replacing omni-directional "Reset" with directional "Entering".
Definition at line 55 of file CodeContext.cc.
References CodeContext::busyTime, CodeContext::codeContextGist(), debugs, CodeContext::ForgetCurrent(), Instance(), and Stopwatch::resume().
Referenced by CodeContext::Reset().
◆ ForgetCurrent()
|
staticprivateinherited |
Forgets the current known context, possibly triggering its destruction. Preserves the gist of the being-forgotten context during its destruction. Knows nothing about the next context – the caller must set it.
Definition at line 42 of file CodeContext.cc.
References assert, and Instance().
Referenced by CodeContext::Entering(), and CodeContext::Leaving().
◆ ipV4clone()
AnyP::PortCfg * AnyP::PortCfg::ipV4clone | ( | ) | const |
Definition at line 85 of file PortCfg.cc.
References debugs, and AnyP::UriScheme::image().
◆ Leaving()
|
staticprivateinherited |
Forgets the current known context. Improves debugging output by replacing omni-directional "Reset" with directional "Leaving".
Definition at line 68 of file CodeContext.cc.
References debugs, CodeContext::ForgetCurrent(), and Instance().
Referenced by CodeContext::Reset().
◆ Reset() [1/2]
|
staticinherited |
Definition at line 77 of file CodeContext.cc.
References Instance(), and CodeContext::Leaving().
Referenced by ClientHttpRequest::ClientHttpRequest(), CodeContextGuard::CodeContextGuard(), CodeContextGuard::~CodeContextGuard(), CallBack(), CallContextCreator(), checkTimeouts(), clientConnectionsClose(), clientHttpConnectionsOpen(), comm_close_complete(), Http::Stream::finished(), AsyncCallQueue::fire(), StoreEntry::invokeHandlers(), peerCountMcastPeersCreateAndSend(), ConnStateData::postHttpsAccept(), Ftp::StartListening(), Ftp::StopListening(), tunnelDelayedClientRead(), and tunnelDelayedServerRead().
◆ Reset() [2/2]
|
staticinherited |
Definition at line 84 of file CodeContext.cc.
References CodeContext::Current(), CodeContext::Entering(), and CodeContext::Leaving().
Member Data Documentation
◆ actAsOrigin
◆ allow_direct
◆ busyTime
|
inherited |
Definition at line 76 of file CodeContext.h.
Referenced by Format::Format::assemble(), and CodeContext::Entering().
◆ connection_auth_disabled
◆ defaultsite
◆ disable_pmtu_discovery
◆ flags
TrafficMode AnyP::PortCfg::flags |
◆ ftp_track_dirs
◆ ignore_cc
◆ listenConn
Comm::ConnectionPointer AnyP::PortCfg::listenConn |
◆ name
◆ next
PortCfgPointer AnyP::PortCfg::next |
◆ s
Ip::Address AnyP::PortCfg::s |
◆ secure
Security::ServerOptions AnyP::PortCfg::secure |
◆ tcp_keepalive
Comm::TcpKeepAlive AnyP::PortCfg::tcp_keepalive |
◆ transport
AnyP::ProtocolVersion AnyP::PortCfg::transport |
◆ vhost
◆ vport
◆ workerQueues
The documentation for this class was generated from the following files:
- src/anyp/PortCfg.h
- src/anyp/PortCfg.cc