9#ifndef SQUID_SRC_PCONN_H
10#define SQUID_SRC_PCONN_H
33#define PCONN_HIST_SZ (1<<16)
139 void dump(std::ostream &)
const;
156 void dumpHist(std::ostream &)
const;
157 void dumpHash(std::ostream &)
const;
189 void dump(std::ostream &yaml);
void CTCB(const CommTimeoutCbParams ¶ms)
void IOCB(const Comm::ConnectionPointer &conn, char *, size_t size, Comm::Flag flag, int xerrno, void *data)
#define CBDATA_CLASS(type)
void findAndClose(const Comm::ConnectionPointer &conn)
Comm::ConnectionPointer pop()
get first conn which is not pending read fd.
void clearHandlers(const Comm::ConnectionPointer &conn)
bool isAvailable(int i) const
int findIndexOf(const Comm::ConnectionPointer &conn) const
Comm::ConnectionPointer findUseable(const Comm::ConnectionPointer &key)
Comm::ConnectionPointer * theList_
void closeN(size_t count)
void endingShutdown() override
void push(const Comm::ConnectionPointer &conn)
Pass control of the connection to the idle list.
bool removeAt(size_t index)
size_t capacity_
Number of entries theList can currently hold without re-allocating (capacity).
A RegisteredRunner with lifetime determined by forces outside the Registry.
void remove(PconnPool *)
unregister and forget about this pool object
Pools pools
all live pools
static PconnModule * instance
void registerWithCacheManager(void)
std::set< PconnPool * > Pools
unordered PconnPool collection
void dump(std::ostream &yaml)
static PconnModule * GetInstance()
static void DumpWrapper(StoreEntry *e)
void closeN(int n)
closes any n connections, regardless of their destination
void dumpHist(std::ostream &) const
void notifyManager(const char *reason)
void unlinkList(IdleConnList *list)
void noteConnectionAdded()
void dump(std::ostream &) const
Comm::ConnectionPointer popStored(const Comm::ConnectionPointer &dest, const char *domain, const bool keepOpen)
CbcPointer< PeerPoolMgr > mgr
optional pool manager (for notifications)
static const char * key(const Comm::ConnectionPointer &destLink, const char *domain)
void dumpHash(std::ostream &) const
void noteConnectionRemoved()
void push(const Comm::ConnectionPointer &serverConn, const char *domain)
Comm::ConnectionPointer pop(const Comm::ConnectionPointer &dest, const char *domain, bool keepOpen)
int theCount
the number of pooled connections
Maintains an fixed-size "standby" PconnPool for a single CachePeer.