gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5928 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r5928 - libmicrohttpd/src/daemon
Date: Sun, 16 Dec 2007 03:49:43 -0700 (MST)

Author: grothoff
Date: 2007-12-16 03:49:37 -0700 (Sun, 16 Dec 2007)
New Revision: 5928

Modified:
   libmicrohttpd/src/daemon/daemontest_post_loop.c
Log:
fix

Modified: libmicrohttpd/src/daemon/daemontest_post_loop.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest_post_loop.c     2007-12-16 10:28:22 UTC 
(rev 5927)
+++ libmicrohttpd/src/daemon/daemontest_post_loop.c     2007-12-16 10:49:37 UTC 
(rev 5928)
@@ -115,7 +115,7 @@
     return 1;
   for (i = 0; i < LOOPCOUNT; i++)
     {
-      if (0 == i % 100)
+      if (99 == i % 100)
         fprintf (stderr, ".");
       c = curl_easy_init ();
       cbc.pos = 0;
@@ -155,7 +155,8 @@
         }
     }
   MHD_stop_daemon (d);
-  fprintf (stderr, "\n");
+  if (LOOPCOUNT >= 99)
+    fprintf (stderr, "\n");
   return 0;
 }
 
@@ -178,7 +179,7 @@
     return 16;
   for (i = 0; i < LOOPCOUNT; i++)
     {
-      if (0 == i % 100)
+      if (99 == i % 100)
         fprintf (stderr, ".");
       c = curl_easy_init ();
       cbc.pos = 0;
@@ -218,7 +219,8 @@
         }
     }
   MHD_stop_daemon (d);
-  fprintf (stderr, "\n");
+  if (LOOPCOUNT >= 99)
+    fprintf (stderr, "\n");
   return 0;
 }
 
@@ -261,8 +263,7 @@
     }
   for (i = 0; i < LOOPCOUNT; i++)
     {
-      if (0 == i % 100)
-        fprintf (stderr, ".");
+      fprintf (stderr, ".");
       c = curl_easy_init ();
       cbc.pos = 0;
       buf[0] = '\0';
@@ -310,7 +311,7 @@
               MHD_stop_daemon (d);
               return 2048;
             }
-          if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max))
+         if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max))
             {
               curl_multi_remove_handle (multi, c);
               curl_multi_cleanup (multi);
@@ -319,7 +320,7 @@
               return 4096;
             }
           if (MHD_NO == MHD_get_timeout (d, &timeout))
-            timeout = 1000000;  /* 1000s == INFTY */
+            timeout = 100;  /* 100ms == INFTY -- CURL bug... */
           if ((CURLM_OK == curl_multi_timeout (multi, &ctimeout)) &&
               (ctimeout < timeout) && (ctimeout >= 0))
             timeout = ctimeout;





reply via email to

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