store_client.cc File Reference
#include "squid.h"
#include "acl/FilledChecklist.h"
#include "base/AsyncCbdataCalls.h"
#include "base/CodeContext.h"
#include "event.h"
#include "globals.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "MemBuf.h"
#include "MemObject.h"
#include "mime_header.h"
#include "sbuf/Stream.h"
#include "SquidConfig.h"
#include "SquidMath.h"
#include "StatCounters.h"
#include "Store.h"
#include "store/SwapMetaIn.h"
#include "store_swapin.h"
#include "StoreClient.h"
#include "DelayPools.h"
Include dependency graph for store_client.cc:

Go to the source code of this file.

Functions

static void storeClientCopy2 (StoreEntry *e, store_client *sc)
 
static bool CheckQuickAbortIsReasonable (StoreEntry *entry)
 
store_clientstoreClientListAdd (StoreEntry *e, void *data)
 
void storeClientCopy (store_client *sc, StoreEntry *e, StoreIOBuffer copyInto, STCB *callback, void *data)
 
static void storeClientReadHeader (void *data, const char *buf, ssize_t len, StoreIOState::Pointer)
 
static void storeClientReadBody (void *data, const char *buf, ssize_t len, StoreIOState::Pointer)
 
int storeUnregister (store_client *sc, StoreEntry *e, void *data)
 
int storePendingNClients (const StoreEntry *e)
 

Variables

static StoreIOState::STRCB storeClientReadBody
 
static StoreIOState::STRCB storeClientReadHeader
 

Function Documentation

◆ CheckQuickAbortIsReasonable()

◆ storeClientCopy()

void storeClientCopy ( store_client sc,
StoreEntry e,
StoreIOBuffer  copyInto,
STCB callback,
void *  data 
)

Asynchronously read HTTP response headers and/or body bytes from Store.

The requested zero-based HTTP body offset is specified via the StoreIOBuffer::offset field. The first call (for a given store_client object) must specify zero offset.

The requested HTTP body portion size is specified via the StoreIOBuffer::length field. The function may return fewer body bytes.

See STCB for result delivery details.

Definition at line 213 of file store_client.cc.

References assert, and sc.

Referenced by asHandleReply(), asnCacheStart(), netdbExchangeHandleReply(), netdbExchangeStart(), peerDigestHandleReply(), peerDigestRequest(), Mgr::StoreToCommWriter::scheduleStoreCopy(), UrnState::start(), and urnHandleReply().

◆ storeClientCopy2()

static void storeClientCopy2 ( StoreEntry e,
store_client sc 
)
static

Definition at line 319 of file store_client.cc.

References assert, debugs, StoreEntry::getMD5Text(), and sc.

Referenced by store_client::copy(), and StoreEntry::invokeHandlers().

◆ storeClientListAdd()

◆ storeClientReadBody()

static void storeClientReadBody ( void *  data,
const char *  buf,
ssize_t  len,
StoreIOState::Pointer   
)
static

Definition at line 704 of file store_client.cc.

References sc.

◆ storeClientReadHeader()

static void storeClientReadHeader ( void *  data,
const char *  buf,
ssize_t  len,
StoreIOState::Pointer   
)
static

Definition at line 697 of file store_client.cc.

References sc.

◆ storePendingNClients()

int storePendingNClients ( const StoreEntry e)

◆ storeUnregister()

Variable Documentation

◆ storeClientReadBody

StoreIOState::STRCB storeClientReadBody
static

Definition at line 42 of file store_client.cc.

Referenced by store_client::fileRead().

◆ storeClientReadHeader

StoreIOState::STRCB storeClientReadHeader
static

Definition at line 43 of file store_client.cc.

Referenced by store_client::fileRead().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors