gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r7013 - GNUnet/src/util/network_client


From: gnunet
Subject: [GNUnet-SVN] r7013 - GNUnet/src/util/network_client
Date: Mon, 2 Jun 2008 00:20:49 -0600 (MDT)

Author: holindho
Date: 2008-06-02 00:20:49 -0600 (Mon, 02 Jun 2008)
New Revision: 7013

Modified:
   GNUnet/src/util/network_client/tcpio.c
Log:
doing ten tries on the same failing AF is excruciatingly slow


Modified: GNUnet/src/util/network_client/tcpio.c
===================================================================
--- GNUnet/src/util/network_client/tcpio.c      2008-06-02 05:13:37 UTC (rev 
7012)
+++ GNUnet/src/util/network_client/tcpio.c      2008-06-02 06:20:49 UTC (rev 
7013)
@@ -275,17 +275,15 @@
           af_index = 0;
         }
       else
+          af_index++;
+      if (addr_families[af_index] == -1)
         {
           /* wait for 500ms before trying again */
           GNUNET_thread_sleep (GNUNET_CRON_MILLISECONDS * 500);
+          af_index = 0;
           tries--;
         }
       if (tries == 0)
-        {
-          af_index++;
-          tries = 10;
-        }
-      if (addr_families[af_index] == -1)
         return GNUNET_SYSERR;
       soaddr = NULL;
       socklen = 0;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]