delete http;
}
-bool
-ConnStateData::areAllContextsForThisConnection() const
-{
- ClientSocketContext::Pointer context = getCurrentContext();
-
- while (context.getRaw()) {
- if (context->http->getConn() != this)
- return false;
-
- context = context->next;
- }
-
- return true;
-}
-
void
ConnStateData::freeAllContexts()
{
flags.readMore = false;
DeregisterRunner(this);
clientdbEstablished(clientConnection->remote, -1); /* decrement */
- assert(areAllContextsForThisConnection());
freeAllContexts();
unpinConnection(true);
void
ConnStateData::getSslContextStart()
{
- assert(areAllContextsForThisConnection());
freeAllContexts();
/* careful: freeAllContexts() above frees request, host, etc. */
*
* XXX: If an async call ends the ClientHttpRequest job, ClientSocketContext
* (and ConnStateData) may not know about it, leading to segfaults and
- * assertions like areAllContextsForThisConnection(). This is difficult to fix
+ * assertions. This is difficult to fix
* because ClientHttpRequest lacks a good way to communicate its ongoing
* destruction back to the ClientSocketContext which pretends to "own" *http.
*/
virtual bool handleReadData();
virtual void afterClientRead();
- bool areAllContextsForThisConnection() const;
void freeAllContexts();
/// Traffic parsing
bool clientParseRequests();
void ClientSocketContext::noteIoError(const int xerrno) STUB
void ClientSocketContext::writeControlMsg(HttpControlMsg &msg) STUB
-bool ConnStateData::areAllContextsForThisConnection() const STUB_RETVAL(false)
void ConnStateData::freeAllContexts() STUB
void ConnStateData::notifyAllContexts(const int xerrno) STUB
bool ConnStateData::clientParseRequests() STUB_RETVAL(false)