#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"
![](fd_8cc__incl.png)
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 (const int fd, const int len, const IoDirection direction) |
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 fd_open(), Ssl::Bio::read(), and fde::useDefaultIo().
◆ default_write_method()
Definition at line 135 of file fd.cc.
Referenced by fd_open(), fde::useDefaultIo(), and Ssl::Bio::write().
◆ fd_bytes()
void fd_bytes | ( | const int | fd, |
const int | len, | ||
const IoDirection | direction | ||
) |
Definition at line 226 of file fd.cc.
References F(), fd_table, Read, and 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(), fd_open(), 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()
Definition at line 156 of file fd.cc.
References assert, DBG_IMPORTANT, debugs, default_read_method(), default_write_method(), F(), fatalf(), fd_close(), FD_FILE, FD_LOG, FD_MSGHDR, fd_note(), FD_PIPE, FD_SOCKET, fd_table, fdUpdateBiggest(), msghdr_read_method(), msghdr_write_method(), and Number_FD.
◆ fdAdjustReserved()
void fdAdjustReserved | ( | void | ) |
Definition at line 288 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 244 of file fd.cc.
References debugs, DebugStream(), F(), fd_table, Important, and Squid_MaxFD.
Referenced by SquidShutdown().
◆ fdNFree()
int fdNFree | ( | void | ) |
Definition at line 267 of file fd.cc.
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(), and fd_open().
◆ fdUsageHigh()
int fdUsageHigh | ( | void | ) |
Definition at line 273 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()
Variable Documentation
◆ fdTypeStr
const char* fdTypeStr[] |
Definition at line 39 of file fd.cc.
Referenced by fde::dumpStats(), and examine_select().
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