return http->getConn();
}
-void
-ClientSocketContext::removeFromConnectionList(ConnStateData * conn)
-{
- ClientSocketContext::Pointer *tempContextPointer;
- assert(conn != NULL && cbdataReferenceValid(conn));
- assert(conn->currentobject != NULL);
- /* Unlink us from the connection request list */
- tempContextPointer = & conn->currentobject;
-
- while (tempContextPointer->getRaw()) {
- if (*tempContextPointer == this)
- break;
-
- tempContextPointer = &(*tempContextPointer)->next;
- }
-
- assert(tempContextPointer->getRaw() != NULL);
- *tempContextPointer = next;
- next = NULL;
-}
-
ClientSocketContext::~ClientSocketContext()
{
clientStreamNode *node = getTail();
assert(connRegistered_);
connRegistered_ = false;
- removeFromConnectionList(conn);
+ assert(conn->pipeline.front() == this); // XXX: still assumes HTTP/1 semantics
+ conn->pipeline.pop();
conn->kick(); // kick anything which was waiting for us to finish
}
allow_t answer = checklist.fastCheck();
if (answer == ACCESS_ALLOWED && answer.kind == 1) {
debugs(33, 3, "Request will be tunneled to server");
- if (context)
- context->removeFromConnectionList(conn);
+ if (context) {
+ assert(conn->pipeline.front() == context); // XXX: still assumes HTTP/1 semantics
+ conn->pipeline.pop();
+ }
Comm::SetSelect(conn->clientConnection->fd, COMM_SELECT_READ, NULL, NULL, 0);
conn->fakeAConnectRequest("unknown-protocol", conn->preservedClientData);
return true;
clientStreamNode * getClientReplyContext() const;
ConnStateData *getConn() const;
void connIsFinished();
- void removeFromConnectionList(ConnStateData * conn);
void deferRecipientForLater(clientStreamNode * node, HttpReply * rep, StoreIOBuffer receivedData);
bool multipartRangeRequest() const;
void registerWithConn();
clientStreamNode * ClientSocketContext::getTail() const STUB_RETVAL(NULL)
clientStreamNode * ClientSocketContext::getClientReplyContext() const STUB_RETVAL(NULL)
void ClientSocketContext::connIsFinished() STUB
-void ClientSocketContext::removeFromConnectionList(ConnStateData * conn) STUB
void ClientSocketContext::deferRecipientForLater(clientStreamNode * node, HttpReply * rep, StoreIOBuffer receivedData) STUB
bool ClientSocketContext::multipartRangeRequest() const STUB_RETVAL(false)
void ClientSocketContext::registerWithConn() STUB