#include <Request.h>

Collaboration diagram for Helper::Request:

Public Member Functions

 Request (HLPCB *c, void *d, const char *b)
 
 ~Request ()
 
bool timedOut (time_t timeout)
 

Public Attributes

char * buf
 
HLPCBcallback
 
void * data
 
int placeholder
 
struct timeval dispatch_time
 
uint64_t Id
 
int retries
 

Private Member Functions

 MEMPROXY_CLASS (Helper::Request)
 

Detailed Description

Definition at line 18 of file Request.h.

Constructor & Destructor Documentation

◆ Request()

Helper::Request::Request ( HLPCB c,
void *  d,
const char *  b 
)
inline

Definition at line 23 of file Request.h.

References dispatch_time.

◆ ~Request()

Helper::Request::~Request ( )
inline

Definition at line 34 of file Request.h.

References buf, cbdataReferenceDone, data, and xfree.

Member Function Documentation

◆ MEMPROXY_CLASS()

Helper::Request::MEMPROXY_CLASS ( Helper::Request  )
private

◆ timedOut()

bool Helper::Request::timedOut ( time_t  timeout)
inline

Definition at line 53 of file Request.h.

References dispatch_time, and squid_curtime.

Member Data Documentation

◆ buf

char* Helper::Request::buf

Definition at line 39 of file Request.h.

Referenced by ~Request(), helperDispatch(), helperStatefulDispatch(), and helper::packStatsInto().

◆ callback

◆ data

◆ dispatch_time

struct timeval Helper::Request::dispatch_time

◆ Id

uint64_t Helper::Request::Id

Definition at line 45 of file Request.h.

Referenced by helper_server::checkForTimedOutRequests(), and helperDispatch().

◆ placeholder

int Helper::Request::placeholder

Definition at line 43 of file Request.h.

Referenced by helperStatefulDispatch(), helper::packStatsInto(), and statefulhelper::submit().

◆ retries

int Helper::Request::retries

A helper may configured to retry timed out requests or on BH replies. We attempt to recover by trying the lookup again, but limit the number of retries to prevent lag and lockups. This tracks the number of previous failures for the request.

Definition at line 52 of file Request.h.

Referenced by helper_server::checkForTimedOutRequests(), and helperReturnBuffer().


The documentation for this class was generated from the following file:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors