~measurement-factory/squid/bag5

« back to all changes in this revision

Viewing changes to src/gopher.cc

  • Committer: Alex Rousskov
  • Date: 2013-08-16 15:40:14 UTC
  • mfrom: (12501.2.58 collapsed-fwd)
  • Revision ID: rousskov@measurement-factory.com-20130816154014-od2kncs1egeerazs
Merged from collapsed-fwd (r12587) to get initial Collapsed Forwarding
support and Large Rock/Store fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
173
173
        return;
174
174
 
175
175
    if (gopherState->entry) {
176
 
        gopherState->entry->unlock();
 
176
        gopherState->entry->unlock("gopherState");
177
177
    }
178
178
 
179
179
    HTTPMSGUNLOCK(gopherState->req);
945
945
                                         CommIoCbPtrFun(gopherSendComplete, gopherState));
946
946
    Comm::Write(gopherState->serverConn, buf, strlen(buf), call, NULL);
947
947
 
948
 
    if (EBIT_TEST(gopherState->entry->flags, ENTRY_CACHABLE))
949
 
        gopherState->entry->setPublicKey();     /* Make it public */
 
948
    gopherState->entry->makePublic();
950
949
}
951
950
 
952
951
/// \ingroup ServerProtocolGopherInternal
962
961
    gopherState = cbdataAlloc(GopherStateData);
963
962
    gopherState->buf = (char *)memAllocate(MEM_4K_BUF);
964
963
 
965
 
    entry->lock();
 
964
    entry->lock("gopherState");
966
965
    gopherState->entry = entry;
967
966
 
968
967
    gopherState->fwd = fwd;