[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10935 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10935 - gnunet/src/fs |
Date: |
Fri, 16 Apr 2010 17:15:04 +0200 |
Author: grothoff
Date: 2010-04-16 17:15:04 +0200 (Fri, 16 Apr 2010)
New Revision: 10935
Modified:
gnunet/src/fs/gnunet-service-fs.c
Log:
fix
Modified: gnunet/src/fs/gnunet-service-fs.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs.c 2010-04-16 15:06:15 UTC (rev 10934)
+++ gnunet/src/fs/gnunet-service-fs.c 2010-04-16 15:15:04 UTC (rev 10935)
@@ -1502,8 +1502,12 @@
double score;
unsigned int i;
unsigned int pc;
-
- /* 1) check if we have already (recently) forwarded to this peer */
+
+ /* 1) check that this peer is not the initiator */
+ if (cp == pr->cp)
+ return GNUNET_YES; /* skip */
+
+ /* 2) check if we have already (recently) forwarded to this peer */
pc = 0;
for (i=0;i<pr->used_pids_off;i++)
if (pr->used_pids[i] == cp->pid)
@@ -1526,7 +1530,7 @@
"Re-trying query that was previously transmitted %u times to
this peer\n",
(unsigned int) pc);
#endif
- // 2) calculate how much we'd like to forward to this peer
+ // 3) calculate how much we'd like to forward to this peer
score = 42; // FIXME!
// FIXME: also need API to gather data on responsiveness
// of this peer (we have fields for that in 'cp', but
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10935 - gnunet/src/fs,
gnunet <=