|
Squid Web Cache master
|
#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 | |
| ScopedId | codeContextGist () const override |
| std::ostream & | detailCodeContext (std::ostream &os) const override |
| appends human-friendly context description line(s) to a cache.log record | |
Static Public Member Functions | |
| static const Pointer & | Current () |
| static void | Reset () |
| forgets the current context, setting it to nil/unknown | |
| static void | Reset (const Pointer) |
| changes the current context; nil argument sets it to nil/unknown | |
Public Attributes | |
| PortCfgPointer | next |
| Ip::Address | s |
| AnyP::ProtocolVersion | transport |
| transport protocol and version received by this port | |
| char * | name |
| char * | defaultsite |
| TrafficMode | flags |
| flags indicating what type of traffic to expect via this port. | |
| bool | allow_direct |
| Allow direct forwarding in accelerator mode. | |
| bool | vhost |
| uses host header | |
| bool | actAsOrigin |
| update replies to conform with RFC 2616 | |
| bool | ignore_cc |
| Ignore request Cache-Control directives. | |
| bool | connection_auth_disabled |
| Don't support connection oriented auth. | |
| bool | ftp_track_dirs |
| whether transactions should track FTP directories | |
| int | vport |
| virtual port support. -1 if dynamic, >0 static | |
| int | disable_pmtu_discovery |
| bool | workerQueues |
| whether listening queues should be worker-specific | |
| Comm::TcpKeepAlive | tcp_keepalive |
| Comm::ConnectionPointer | listenConn |
| Security::ServerOptions | secure |
| TLS configuration options for this listening port. | |
| Stopwatch | busyTime |
| time spent in this context (see also: busy_time) | |
Private Member Functions | |
| PortCfg (const PortCfg &other) | |
Static Private Member Functions | |
| static void | ForgetCurrent () |
| static void | Entering (const Pointer &codeCtx) |
| static void | Leaving () |
|
inherited |
Definition at line 55 of file CodeContext.h.
| AnyP::PortCfg::PortCfg | ( | ) |
Definition at line 28 of file PortCfg.cc.
References AnyP::PROTO_HTTP.
|
delete |
|
override |
Definition at line 48 of file PortCfg.cc.
References Comm::IsConnOpen(), and safe_free.
|
explicitprivate |
Definition at line 59 of file PortCfg.cc.
References assert, listenConn, and next.
|
overridevirtual |
Implements CodeContext.
Definition at line 95 of file PortCfg.cc.
|
staticinherited |
Definition at line 33 of file CodeContext.cc.
Referenced by CallAndRestore_(), CallSubscription< Call_ >::callback(), CallContextCreator(), clientConnectionsClose(), clientHttpConnectionsOpen(), commStartHalfClosedMonitor(), CurrentCodeContextDetail(), HappyOrderEnforcer::enqueue(), CommQuotaQueue::enqueue(), StoreEntry::invokeHandlers(), neighborsUdpPing(), peerDnsRefreshStart(), Security::KeyLog::record(), CodeContext::Reset(), ScheduleCall(), Ftp::StartListening(), Ftp::StopListening(), tunnelDelayedClientRead(), and tunnelDelayedServerRead().
|
overridevirtual |
|
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(), and Stopwatch::resume().
Referenced by CodeContext::Reset().
|
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.
Referenced by CodeContext::Entering(), and CodeContext::Leaving().
| AnyP::PortCfg * AnyP::PortCfg::ipV4clone | ( | ) | const |
Definition at line 85 of file PortCfg.cc.
References debugs, and AnyP::UriScheme::image().
|
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, and CodeContext::ForgetCurrent().
Referenced by CodeContext::Reset(), and CodeContext::Reset().
|
staticinherited |
Definition at line 77 of file CodeContext.cc.
References CodeContext::Leaving().
Referenced by ClientHttpRequest::ClientHttpRequest(), CodeContextGuard::CodeContextGuard(), CodeContextGuard::~CodeContextGuard(), CallAndRestore_(), CallContextCreator(), checkTimeouts(), clientConnectionsClose(), clientHttpConnectionsOpen(), comm_close_complete(), Http::Stream::finished(), AsyncCallQueue::fire(), StoreEntry::invokeHandlers(), neighborsUdpPing(), peerCountMcastPeersCreateAndSend(), peerDnsRefreshStart(), ConnStateData::postHttpsAccept(), Ftp::StartListening(), Ftp::StopListening(), tunnelDelayedClientRead(), and tunnelDelayedServerRead().
|
staticinherited |
Definition at line 84 of file CodeContext.cc.
References CodeContext::Current(), CodeContext::Entering(), and CodeContext::Leaving().
|
inherited |
Definition at line 76 of file CodeContext.h.
Referenced by Format::Format::assemble(), and CodeContext::Entering().
| TrafficMode AnyP::PortCfg::flags |
| Comm::ConnectionPointer AnyP::PortCfg::listenConn |
| PortCfgPointer AnyP::PortCfg::next |
| Ip::Address AnyP::PortCfg::s |
| Security::ServerOptions AnyP::PortCfg::secure |
| Comm::TcpKeepAlive AnyP::PortCfg::tcp_keepalive |
| AnyP::ProtocolVersion AnyP::PortCfg::transport |