context_storage.cc
Go to the documentation of this file.
41 stream << "Port" << delimiter << "Max mem(KB)" << delimiter << "Cert number" << delimiter << "KB/cert" << delimiter << "Mem used(KB)" << delimiter << "Mem free(KB)" << endString;
44 for (std::map<Ip::Address, LocalContextStorage *>::iterator i = TheGlobalContextStorage.storage.begin(); i != TheGlobalContextStorage.storage.end(); ++i) {
64 RegisterAction("cached_ssl_cert", "Statistic of cached generated ssl certificates", &CertificateStorageAction::Create, 0, 1);
69 for (std::map<Ip::Address, LocalContextStorage *>::iterator i = storage.begin(); i != storage.end(); ++i) {
74 void Ssl::GlobalContextStorage::addLocalStorage(Ip::Address const & address, size_t size_of_store)
80 Ssl::LocalContextStorage *Ssl::GlobalContextStorage::getLocalStorage(Ip::Address const & address)
103 for (std::map<Ip::Address, LocalContextStorage *>::iterator i = storage.begin(); i != storage.end();) {
115 for (std::map<Ip::Address, size_t>::iterator conf_i = configureStorage.begin(); conf_i != configureStorage.end(); ++conf_i ) {
117 storage.insert(std::pair<Ip::Address, LocalContextStorage *>(conf_i->first, new LocalContextStorage(conf_i->second)));
GlobalContextStorage()
Definition: context_storage.cc:61
Definition: PackableStream.h:75
void dump(StoreEntry *sentry) override
Definition: context_storage.cc:33
CertificateStorageAction(const Mgr::Command::Pointer &cmd)
Definition: context_storage.cc:23
LocalContextStorage * getLocalStorage(Ip::Address const &address)
Return the local storage for the given listening address/port.
Definition: context_storage.cc:80
Definition: ClpMap.h:40
int reconfiguring
size_t entries() const
The number of currently stored entries, including expired ones.
Definition: ClpMap.h:109
Definition: forward.h:15
~GlobalContextStorage()
Definition: context_storage.cc:67
GlobalContextStorage TheGlobalContextStorage
Global cache for store all SSL server certificates.
Definition: context_storage.cc:123
void reconfigureStart()
When reconfigring should be called this method.
Definition: context_storage.cc:91
Definition: Store.h:37
static Pointer Create(const Mgr::Command::Pointer &cmd)
Definition: context_storage.cc:28
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)
Definition: Registration.cc:54
void addLocalStorage(Ip::Address const &address, size_t size_of_store)
Create new SSL context storage for the local listening address/port.
Definition: context_storage.cc:74
uint64_t memoryUsed() const
The current (approximate) memory usage of the map.
Definition: ClpMap.h:106
std::map< Ip::Address, LocalContextStorage * > storage
Map for storing all local ip address and their local storages.
Definition: context_storage.h:73
Class for storing/manipulating LocalContextStorage per local listening address/port.
Definition: context_storage.h:54
Definition: Address.h:42
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products