Sending HTTP requests to the multicast group does not make much sense. Force
digest and netdb exchanged to be disabled on the multicast group. Such
exchanges only makes sense on the individual peers.
Forward port of 2.6 patch.
Also ran astyle.
/*
- * $Id: cache_cf.cc,v 1.502 2006/12/14 01:36:01 hno Exp $
+ * $Id: cache_cf.cc,v 1.503 2006/12/24 13:43:08 serassio Exp $
*
* DEBUG: section 3 Configuration File Parsing
* AUTHOR: Harvest Derived
p->type = parseNeighborType(token);
+ if (p->type == PEER_MULTICAST) {
+ p->options.no_digest = 1;
+ p->options.no_netdb_exchange = 1;
+ }
+
p->http_port = GetShort();
if (!p->http_port)
/* port */
} else {
host = token;
- port = 0;
+ port = 0;
}
s = static_cast<sockaddr_in_list *>(xcalloc(1, sizeof(*s)));
/*
- * $Id: neighbors.cc,v 1.342 2006/12/24 13:30:16 serassio Exp $
+ * $Id: neighbors.cc,v 1.343 2006/12/24 13:43:08 serassio Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
if (!peerHTTPOkay(p, request))
continue;
- if (p->weight == 1) {
- if (q && q->rr_count < p->rr_count)
- continue;
- } else if (p->weight == 0 || q && q->rr_count < (p->rr_count / p->weight)) {
- continue;
- }
+ if (p->weight == 1) {
+ if (q && q->rr_count < p->rr_count)
+ continue;
+ } else if (p->weight == 0 || q && q->rr_count < (p->rr_count / p->weight)) {
+ continue;
+ }
q = p;
}