Include.cc File Reference
#include "squid.h"
#include "client_side.h"
#include "client_side_request.h"
#include "esi/Include.h"
#include "esi/VarState.h"
#include "fatal.h"
#include "http/Stream.h"
#include "HttpReply.h"
#include "log/access_log.h"
Include dependency graph for Include.cc:

Go to the source code of this file.

Functions

 CBDATA_CLASS_INIT (ESIStreamContext)
 
static ESIStreamContextESIStreamContextNew (ESIIncludePtr)
 
void esiBufferDetach (clientStreamNode *node, ClientHttpRequest *http)
 
void esiBufferRecipient (clientStreamNode *node, ClientHttpRequest *http, HttpReply *rep, StoreIOBuffer receivedData)
 

Variables

static CSCB esiBufferRecipient
 
static CSD esiBufferDetach
 

Function Documentation

CBDATA_CLASS_INIT ( ESIStreamContext  )
void esiBufferDetach ( clientStreamNode node,
ClientHttpRequest http 
)

Definition at line 39 of file Include.cc.

References clientStreamDetach().

void esiBufferRecipient ( clientStreamNode node,
ClientHttpRequest http,
HttpReply rep,
StoreIOBuffer  receivedData 
)

Write a chunk of data to a client 'socket'. If the reply is present, send the reply headers down the wire too.

Pre-condition: The request is an internal ESI subrequest. data context is not NULL There are no more entries in the stream chain. The caller is responsible for creation and deletion of the Reply headers.

Note
Bug 975, bug 1566 : delete rep; 2006/09/02: TS, #975

This was causing double-deletes. Its possible that not deleting it here will cause memory leaks, but if so, this delete should not be reinstated or it will trigger bug #975 again - RBC 20060903

Definition at line 63 of file Include.cc.

References assert, cbdataReferenceValid(), clientHttpRequestStatus(), clientStreamRead(), clientStreamStatus(), StoreIOBuffer::data, clientStreamNode::data, DBG_IMPORTANT, debugs, fatal(), ClientHttpRequest::getConn(), RefCount< C >::getRaw(), HERE(), httpRequestFree(), StoreIOBuffer::length, HttpRequest::method, dlink_node::next, ESISegment::next, clientStreamNode::node, NULL, StoreIOBuffer::offset, ClientHttpRequest::Out::offset, ClientHttpRequest::out, clientStreamNode::readBuffer, ClientHttpRequest::request, Http::scOkay, HttpReply::sline, Http::StatusLine::status(), STREAM_COMPLETE, STREAM_FAILED, STREAM_NONE, and STREAM_UNPLANNED_COMPLETE.

ESIStreamContext * ESIStreamContextNew ( ESIIncludePtr  include)
static

Definition at line 213 of file Include.cc.

References ESIStreamContext::include.

Referenced by ESIInclude::ESIInclude(), and ESIInclude::makeUsable().

Variable Documentation

CSD esiBufferDetach
static

Definition at line 28 of file Include.cc.

Referenced by ESIInclude::Start().

CSCB esiBufferRecipient
static

Definition at line 27 of file Include.cc.

Referenced by ESIInclude::Start().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors