}
}
- if (connRegistered_)
- deRegisterWithConn();
-
httpRequestFree(http);
/* clean up connection links to us */
http->getConn()->pipeline.add(ClientSocketContext::Pointer(this));
}
-void
-ClientSocketContext::deRegisterWithConn()
-{
- assert (connRegistered_);
- removeFromConnectionList(http->getConn());
- connRegistered_ = false;
-}
-
void
ClientSocketContext::connIsFinished()
{
assert (http);
assert (http->getConn() != NULL);
ConnStateData *conn = http->getConn();
- deRegisterWithConn();
+
/* we can't handle any more stream data - detach */
clientStreamDetach(getTail(), http);
+ assert(connRegistered_);
+ connRegistered_ = false;
+ removeFromConnectionList(conn);
conn->kick(); // kick anything which was waiting for us to finish
}
void prepareReply(HttpReply * rep);
void packChunk(const StoreIOBuffer &bodyData, MemBuf &mb);
void packRange(StoreIOBuffer const &, MemBuf * mb);
- void deRegisterWithConn();
void doClose();
void initiateClose(const char *reason);