[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8658 - GNUnet/src/applications/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8658 - GNUnet/src/applications/testing |
Date: |
Thu, 9 Jul 2009 17:41:42 -0600 |
Author: nevans
Date: 2009-07-09 17:41:42 -0600 (Thu, 09 Jul 2009)
New Revision: 8658
Modified:
GNUnet/src/applications/testing/remote.c
Log:
Modified: GNUnet/src/applications/testing/remote.c
===================================================================
--- GNUnet/src/applications/testing/remote.c 2009-07-09 22:36:06 UTC (rev
8657)
+++ GNUnet/src/applications/testing/remote.c 2009-07-09 23:41:42 UTC (rev
8658)
@@ -775,7 +775,7 @@
char *cmd;
int length;
int totalConnections;
-
+ int connectFailures;
ret = GNUNET_OK;
switch (type)
{
@@ -893,6 +893,7 @@
* to the first later, but this IS simple. If performance becomes a
problem
* with MANY conns, we'll see...
*/
+ connectFailures = 0;
while ((pos != NULL) && (ret == GNUNET_OK))
{
friend_pos = pos->friend_entries;
@@ -910,6 +911,10 @@
friend_pos->hostentry->
port, dotOutFile);
if (ret != GNUNET_OK)
+ {
+ connectFailures++;
+ }
+ if (connectFailures > totalConnections/2)
break;
friend_pos = friend_pos->next;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8658 - GNUnet/src/applications/testing,
gnunet <=