gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 03/09: test_upgrade: fail if connection is closed when i


From: gnunet
Subject: [libmicrohttpd] 03/09: test_upgrade: fail if connection is closed when it shouldn't
Date: Sat, 15 Jan 2022 15:47:43 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit b5a7f1835fba33549baf4e9945f47de36b773571
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Jan 15 15:32:25 2022 +0300

    test_upgrade: fail if connection is closed when it shouldn't
---
 src/microhttpd/test_upgrade.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 1e5430bc..81a36004 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -813,7 +813,7 @@ recv_hdr (struct wr_socket *sock)
       externalErrorExitDesc ("recv() failed");
     }
     if (0 == ret)
-      continue; /* TODO: replace with error exit! */
+      mhdErrorExitDesc ("The server unexpectedly closed connection");
     if (c == next)
     {
       i++;
@@ -860,6 +860,8 @@ recv_all (struct wr_socket *sock,
       }
       externalErrorExitDesc ("recv() failed");
     }
+    if (0 == ret)
+      mhdErrorExitDesc ("The server unexpectedly closed connection");
   }
   if (0 != strncmp (text, buf, len))
   {

-- 
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]