~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/adaptation/ecap/XactionRep.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2011-01-21 18:43:56 UTC
  • mfrom: (1.4.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: james.westby@ubuntu.com-20110121184356-4zn7gwuzws6lpnuc
Tags: 3.1.10-1
* New upstream release (Closes: #609881)
  - Removed patches integrated upstream
    + 16-CVE-2010-3072
    + 17-CVE-2010-2951
  - Fixes TCP DNS lookups failure on IPv6-disabled systems (Closes: #607379)
  - Fixes HTTPS not working if IPv6 is disabled (Closes: #594713)

* debian/rules
  - Enable ZPH feature (Closes: #597687)

* debian/squid3.ufw.profile
  - Added UFW profile, thanks to Alessio Treglia (Closes: #605088)

* debian/control
  - Added versioned dependency on squid-langpack

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
CBDATA_NAMESPACED_CLASS_INIT(Adaptation::Ecap::XactionRep, XactionRep);
15
15
 
16
16
 
17
 
Adaptation::Ecap::XactionRep::XactionRep(Adaptation::Initiator *anInitiator,
18
 
        HttpMsg *virginHeader, HttpRequest *virginCause,
19
 
        const Adaptation::ServicePointer &aService):
 
17
Adaptation::Ecap::XactionRep::XactionRep(
 
18
    HttpMsg *virginHeader, HttpRequest *virginCause,
 
19
    const Adaptation::ServicePointer &aService):
20
20
        AsyncJob("Adaptation::Ecap::XactionRep"),
21
 
        Adaptation::Initiate("Adaptation::Ecap::XactionRep", anInitiator),
 
21
        Adaptation::Initiate("Adaptation::Ecap::XactionRep"),
22
22
        theService(aService),
23
23
        theVirginRep(virginHeader), theCauseRep(NULL),
24
24
        proxyingVb(opUndecided), proxyingAb(opUndecided),
430
430
        const BodyPipePointer &vp = theVirginRep.raw().body_pipe;
431
431
        if (!canAccessVb)
432
432
            buf.append("x", 1);
433
 
        if (vp != NULL && vp->stillConsuming(this)) {
 
433
        if (vp != NULL) { // XXX: but may not be stillConsuming()
434
434
            buf.append("Vb", 2);
435
 
            buf.append(vp->status(), strlen(vp->status())); // XXX
436
435
        } else
437
436
            buf.append("V.", 2);
438
437
    }
441
440
        MessageRep *rep = dynamic_cast<MessageRep*>(theAnswerRep.get());
442
441
        Must(rep);
443
442
        const BodyPipePointer &ap = rep->raw().body_pipe;
444
 
        if (ap != NULL && ap->stillProducing(this)) {
 
443
        if (ap != NULL) { // XXX: but may not be stillProducing()
445
444
            buf.append(" Ab", 3);
446
 
            buf.append(ap->status(), strlen(ap->status())); // XXX
447
445
        } else
448
446
            buf.append(" A.", 3);
449
447
    }