ConnStateData::swanSong()
{
    debugs(33, 2, HERE << clientConnection);

    flags.readMore = false;
    clientdbEstablished(clientConnection->remote, -1);  /* decrement */

    terminateAll(ERR_NONE, LogTagsErrors());
    checkLogging();

    // XXX: Closing pinned conn is too harsh: The Client may want to continue!
    unpinConnection(true);

    Server::swanSong();

#if USE_AUTH
    // NP: do this bit after closing the connections to avoid side effects from unwanted TCP RST
    setAuth(NULL, "ConnStateData::SwanSong cleanup");
#endif

    flags.swanSang = true;
}
ConnStateData::swanSong()
{
    debugs(33, 2, HERE << clientConnection);

    flags.readMore = false;
    clientdbEstablished(clientConnection->remote, -1);   

    terminateAll(ERR_NONE, LogTagsErrors());
    checkLogging();

     
    unpinConnection(true);

    Server::swanSong();

#if USE_AUTH
     
    setAuth(NULL, "ConnStateData::SwanSong cleanup");
#endif

    flags.swanSang = true;
}