#include "squid.h"
#include "comm/Loops.h"
#include "debug/Messages.h"
#include "debug/Stream.h"
#include "fatal.h"
#include "fd.h"
#include "fde.h"
#include "globals.h"
Go to the source code of this file.
Macros | |
#define | MSG_NOSIGNAL 0 |
Functions | |
int | default_read_method (int, char *, int) |
int | default_write_method (int, const char *, int) |
int | msghdr_read_method (int, char *, int) |
int | msghdr_write_method (int, const char *, int) |
static void | fdUpdateBiggest (int fd, int) |
void | fd_close (int fd) |
void | fd_open (int fd, unsigned int type, const char *desc) |
void | fd_note (int fd, const char *s) |
void | fd_bytes (int fd, int len, unsigned int type) |
void | fdDumpOpen (void) |
int | fdNFree (void) |
int | fdUsageHigh (void) |
void | fdAdjustReserved (void) |
Variables | |
const char * | fdTypeStr [] |
Macro Definition Documentation
◆ MSG_NOSIGNAL
Function Documentation
◆ default_read_method()
Definition at line 129 of file fd.cc.
Referenced by Ssl::Bio::read(), and fde::useDefaultIo().
◆ default_write_method()
Definition at line 135 of file fd.cc.
Referenced by fde::useDefaultIo(), and Ssl::Bio::write().
◆ fd_bytes()
Definition at line 226 of file fd.cc.
References assert, F(), FD_READ, fd_table, and FD_WRITE.
Referenced by diskerRead(), diskerWriteAttempts(), diskHandleRead(), diskHandleWrite(), idnsRead(), idnsSendQuery(), logfile_mod_udp_write(), logfileWriteWrapper(), Ftp::Client::readControlReply(), Comm::ReadNow(), Client::sentRequestBody(), Ftp::Client::writeCommandCallback(), and HttpStateData::wroteLast().
◆ fd_close()
void fd_close | ( | int | fd | ) |
◆ fd_note()
void fd_note | ( | int | fd, |
const char * | s | ||
) |
Definition at line 216 of file fd.cc.
References F(), FD_DESC_SZ, fd_table, and xstrncpy().
Referenced by Ftp::Server::AcceptCtrlConnection(), Ftp::Server::acceptDataConnection(), ConnStateData::afterClientRead(), ClientRequestContext::clientRedirectDone(), Ftp::Server::connectedForData(), CreateSession(), FwdState::dispatch(), Server::doClientRead(), httpAccept(), httpsAccept(), icpIncomingConnectionOpened(), icpOpenPorts(), DiskdIOStrategy::init(), ipc_thread_1(), IcmpSquid::Open(), Helper::Client::openSessions(), statefulhelper::openSessions(), ConnStateData::parseTlsHandshake(), ConnStateData::pinConnection(), PconnPool::push(), ConnStateData::readNextRequest(), unlinkdInit(), and Http::Tunneler::writeRequest().
◆ fd_open()
◆ fdAdjustReserved()
void fdAdjustReserved | ( | void | ) |
Definition at line 286 of file fd.cc.
References DBG_CRITICAL, debugs, fatalf(), last, min(), Number_FD, RESERVED_FD, squid_curtime, and Squid_MaxFD.
Referenced by comm_open_uds(), and comm_openex().
◆ fdDumpOpen()
void fdDumpOpen | ( | void | ) |
Definition at line 242 of file fd.cc.
References debug_log, debugs, F(), fd_table, Important, and Squid_MaxFD.
Referenced by SquidShutdown().
◆ fdNFree()
int fdNFree | ( | void | ) |
Definition at line 265 of file fd.cc.
References Number_FD, Opening_FD, and Squid_MaxFD.
Referenced by StoreEntry::checkCachable(), fdUsageHigh(), GetInfo(), and Comm::TcpAcceptor::okToAccept().
◆ fdUpdateBiggest()
Definition at line 52 of file fd.cc.
References assert, Biggest_FD, fd_table, and Squid_MaxFD.
Referenced by fd_close().
◆ fdUsageHigh()
int fdUsageHigh | ( | void | ) |
Definition at line 271 of file fd.cc.
References fdNFree(), Number_FD, and RESERVED_FD.
Referenced by clientReplyContext::buildReplyHeader(), PeerPoolMgr::openNewConnection(), and PconnPool::push().
◆ msghdr_read_method()
◆ msghdr_write_method()
Definition at line 147 of file fd.cc.
References MSG_NOSIGNAL.
Variable Documentation
◆ fdTypeStr
const char* fdTypeStr[] |
Definition at line 39 of file fd.cc.
Referenced by fde::dumpStats(), and examine_select().