[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.
- [libmicrohttpd] branch master updated (376afc84 -> 0ea5d514), gnunet, 2022/01/15
- [libmicrohttpd] 02/09: test_upgrade: don't fail with particular sockets errors, gnunet, 2022/01/15
- [libmicrohttpd] 03/09: test_upgrade: fail if connection is closed when it shouldn't,
gnunet <=
- [libmicrohttpd] 01/09: test_upgrade: replaced a few left abort() with meaningful descriptions, gnunet, 2022/01/15
- [libmicrohttpd] 05/09: test_upgrade: minor code refactoring, gnunet, 2022/01/15
- [libmicrohttpd] 09/09: test_upgrade{, _large}: used the same port for all checks., gnunet, 2022/01/15
- [libmicrohttpd] 06/09: test_upgrade: added missing fflush(), gnunet, 2022/01/15
- [libmicrohttpd] 04/09: test_upgrade: use 'volatile' for variable with multithread access, gnunet, 2022/01/15
- [libmicrohttpd] 07/09: test_upgrade_large: applied fixes and improvements from test_upgrade, gnunet, 2022/01/15
- [libmicrohttpd] 08/09: test_upgrade{,_large}: simplified stdout,stderr flushing, gnunet, 2022/01/15