gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated (035048e6 -> c6e5b324)


From: gnunet
Subject: [libmicrohttpd] branch master updated (035048e6 -> c6e5b324)
Date: Mon, 21 Sep 2020 13:32:19 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from 035048e6 test_upgrade_large.c: used portable way of inter-thread 
communication
     new 274a4fb1 test_upgrade_large: fixed: don't override errno
     new c6e5b324 test_upgrade_large: apply formatting

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/microhttpd/test_upgrade_large.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/src/microhttpd/test_upgrade_large.c 
b/src/microhttpd/test_upgrade_large.c
index a4d339ad..60246706 100644
--- a/src/microhttpd/test_upgrade_large.c
+++ b/src/microhttpd/test_upgrade_large.c
@@ -589,7 +589,7 @@ make_blocking (MHD_socket fd)
 static void
 kick_select ()
 {
-  if (MHD_ITC_IS_VALID_(kicker))
+  if (MHD_ITC_IS_VALID_ (kicker))
   {
     MHD_itc_activate_ (kicker, "K");
   }
@@ -610,16 +610,13 @@ send_all (struct wr_socket *sock,
     ret = wr_send (sock,
                    &text[off],
                    len - off);
-    kick_select ();
     if (0 > ret)
     {
-      if (MHD_SCKT_ERR_IS_EAGAIN_ (MHD_socket_get_error_ ()))
-      {
-        ret = 0;
-        continue;
-      }
-      abort ();
+      if (! MHD_SCKT_ERR_IS_EAGAIN_ (MHD_socket_get_error_ ()))
+        abort ();
+      ret = 0;
     }
+    kick_select ();
   }
 }
 
@@ -919,7 +916,7 @@ run_mhd_select_loop (struct MHD_Daemon *daemon)
   MHD_UNSIGNED_LONG_LONG to;
   struct timeval tv;
 
-  if (!MHD_itc_init_ (kicker))
+  if (! MHD_itc_init_ (kicker))
     abort ();
   while (! done)
   {
@@ -999,7 +996,7 @@ run_mhd_epoll_loop (struct MHD_Daemon *daemon)
   di = MHD_get_daemon_info (daemon,
                             MHD_DAEMON_INFO_EPOLL_FD);
   ep = di->listen_fd;
-  if (!MHD_itc_init_ (kicker))
+  if (! MHD_itc_init_ (kicker))
     abort ();
   while (! done)
   {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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