[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5813 - libmicrohttpd/src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5813 - libmicrohttpd/src/daemon |
Date: |
Thu, 6 Dec 2007 15:29:15 -0700 (MST) |
Author: grothoff
Date: 2007-12-06 15:29:15 -0700 (Thu, 06 Dec 2007)
New Revision: 5813
Modified:
libmicrohttpd/src/daemon/daemontest_post_loop.c
Log:
better
Modified: libmicrohttpd/src/daemon/daemontest_post_loop.c
===================================================================
--- libmicrohttpd/src/daemon/daemontest_post_loop.c 2007-12-06 20:19:55 UTC
(rev 5812)
+++ libmicrohttpd/src/daemon/daemontest_post_loop.c 2007-12-06 22:29:15 UTC
(rev 5813)
@@ -298,7 +298,7 @@
FD_ZERO (&rs);
FD_ZERO (&ws);
FD_ZERO (&es);
- curl_multi_perform (multi, &running);
+ while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform (multi,
&running));
mret = curl_multi_fdset (multi, &rs, &ws, &es, &max);
if (mret != CURLM_OK)
{
@@ -322,19 +322,10 @@
(ctimeout < timeout) &&
(ctimeout >= 0) )
timeout = ctimeout;
- if (timeout > 0)
- timeout = 0; /* this line is needed since CURL seems to have
- a bug -- it returns a timeout of -1 even though
- it should be attempting to connect -- and the
- socket for doing the connection is not yet
- in the write-set! If the timeout is too high,
- no progress would happen! Even a timeout of
- 1 would cause my system to be mostly idle instead
- of processing at maximum speed... */
tv.tv_sec = timeout / 1000;
tv.tv_usec = (timeout % 1000) * 1000;
select (max + 1, &rs, &ws, &es, &tv);
- curl_multi_perform (multi, &running);
+ while (CURLM_CALL_MULTI_PERFORM == curl_multi_perform (multi,
&running));
if (running == 0)
{
msg = curl_multi_info_read (multi, &running);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5813 - libmicrohttpd/src/daemon,
gnunet <=