}
}
+/**
+ \ingroup CacheManagerAPI
+ * Registers a C-style action, which is implemented as a pointer to a function
+ * taking as argument a pointer to a StoreEntry and returning void.
+ * Implemented via CacheManagerActionLegacy.
+ */
void
CacheManager::registerProfile(char const * action, char const * desc, OBJH * handler, int pw_req_flag, int atomic)
{
* object for state data. But a semantic equivalent for FD with easily
* accessible cached properties not requiring repeated complex lookups.
*
- * Connection properties may be changed until tehe connection is opened.
+ * Connection properties may be changed until the connection is opened.
* Properties should be considered read-only outside of the Comm layer
* code once the connection is open.
*
operator << (std::ostream &os, const Comm::Connection &conn)
{
os << "FD " << conn.fd << " local=" << conn.local <<
- " remote=" << conn.remote << " flags=" << conn.flags;
+ " remote=" << conn.remote;
+ if (flags != COMM_UNSET)
+ os << " flags=" << conn.flags;
#if USE_IDENT
- os << " IDENT::" << conn.rfc931;
+ if (*conn.rfc931)
+ os << " IDENT::" << conn.rfc931;
#endif
return os;
}
for (int index = 0; index < size_; index++)
theList_[index] = oldList[index];
-/* TODO: re-attach to MemPools.
- if (size_ == PCONN_FDS_SZ)
- pconn_fds_pool->freeOne(oldList);
- else
-*/
delete[] oldList;
}
private:
/** List of connections we are holding.
- * Sorted oldest to newest for most efficient speeds on pop() and findUsable()
+ * Sorted as FIFO list for most efficient speeds on pop() and findUsable()
* The worst-case pop() and scans occur on timeout and link closure events
* where timing is less critical. Occasional slow additions are okay.
*/