Revision 5bb51b2b

View differences:

streaming.c
88 88
 * should look at buffermap information received about the given peer (or it should guess)
89 89
 */
90 90
int needs(struct peer *p, struct chunk *c){
91
  return 1;	//TODO: avoid at least sending to the source :)
91
  return (! p->bmap || chunkID_set_check(p->bmap,c->id) < 0);
92 92
}
93 93
double randomPeer(struct peer **p){
94 94
  return 1;

Also available in: Unified diff