98 p->
readReply(conn, buf, len, flag, xerrno);
118 aBuffer[aBufferLength] =
'\0';
119 debugs(75, 3, conn <<
" read " << aBufferLength <<
" bytes");
120 debugs(75, 5,
"{" << aBuffer <<
"}");
126 debugs(52, 3,
"terminating due to bad " << *
entry);
133 debugs(50, 2, conn <<
": read failure: " <<
xstrerr(xerrno));
141 err->xerrno = xerrno;
148 if (aBufferLength > 0) {
187 debugs(75, 3,
"whoisClose: FD " << params.
fd);
CommCbFunPtrCallT< Dialer > * commCbCall(int debugSection, int debugLevel, const char *callName, const Dialer &dialer)
void CTCB(const CommTimeoutCbParams ¶ms)
void IOCB(const Comm::ConnectionPointer &conn, char *, size_t size, Comm::Flag flag, int xerrno, void *data)
void CLCB(const CommCloseCbParams ¶ms)
void comm_read(const Comm::ConnectionPointer &conn, char *buf, int len, AsyncCall::Pointer &callback)
#define SQUIDSBUFPRINT(s)
static void whoisWriteComplete(const Comm::ConnectionPointer &, char *buf, size_t, Comm::Flag, int, void *)
static IOCB whoisReadReply
#define CBDATA_CLASS_INIT(type)
SBuf & absolutePath() const
RFC 3986 section 4.2 relative reference called 'absolute-path'.
int fd
FD which the call was about. Set by the async call creator.
Comm::ConnectionPointer conn
Comm::ConnectionPointer const & serverConnection() const
void fail(ErrorState *err)
void markStoredReplyAsWhole(const char *whyWeAreSure)
AccessLogEntryPointer al
info for the future access.log entry
void setHeaders(Http::StatusCode status, const char *reason, const char *ctype, int64_t clen, time_t lmt, time_t expires)
AnyP::Uri url
the request URI
uint32_t sources
The message sources.
size_type length() const
Returns the number of bytes stored in SBuf.
SBuf substr(size_type pos, size_type n=npos) const
struct SquidConfig::@77 Timeout
struct StatCounters::@105::@115 http
struct StatCounters::@105 server
struct StatCounters::@105::@115 all
int unlock(const char *context)
void lock(const char *context)
bool makePublic(const KeyScope keyScope=ksDefault)
void makePrivate(const bool shareable)
void replaceHttpReply(const HttpReplyPointer &, const bool andStartWriting=true)
void append(char const *, int) override
Appends a c-string to existing packed data.
void readReply(const Comm::ConnectionPointer &, char *aBuffer, size_t aBufferLength, Comm::Flag flag, int xerrno)
void setReplyToOK(StoreEntry *sentry)
HttpRequest::Pointer request
AsyncCall::Pointer comm_add_close_handler(int fd, CLCB *handler, void *data)
void commSetConnTimeout(const Comm::ConnectionPointer &conn, time_t timeout, AsyncCall::Pointer &callback)
int ignoreErrno(int ierrno)
#define debugs(SECTION, LEVEL, CONTENT)
void whoisStart(FwdState *fwd)
void Write(const Comm::ConnectionPointer &conn, const char *buf, int size, AsyncCall::Pointer &callback, FREE *free_func)
const char * xstrerr(int error)