~measurement-factory/squid/bag5

« back to all changes in this revision

Viewing changes to src/whois.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:
96
96
    p->fwd = fwd;
97
97
    p->dataWritten = false;
98
98
 
99
 
    p->entry->lock();
 
99
    p->entry->lock("whoisStart");
100
100
    comm_add_close_handler(fwd->serverConnection()->fd, whoisClose, p);
101
101
 
102
102
    l = p->request->urlpath.size() + 3;
192
192
    entry->timestampsSet();
193
193
    entry->flush();
194
194
 
195
 
    if (!EBIT_TEST(entry->flags, RELEASE_REQUEST))
196
 
        entry->setPublicKey();
 
195
    entry->makePublic();
197
196
 
198
197
    fwd->complete();
199
198
    debugs(75, 3, "whoisReadReply: Done: " << entry->url());
205
204
{
206
205
    WhoisState *p = (WhoisState *)params.data;
207
206
    debugs(75, 3, "whoisClose: FD " << params.fd);
208
 
    p->entry->unlock();
 
207
    p->entry->unlock("whoisClose");
209
208
    cbdataFree(p);
210
209
}