gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: test_https_time_out: fixed broken


From: gnunet
Subject: [libmicrohttpd] branch master updated: test_https_time_out: fixed broken check
Date: Sun, 12 Dec 2021 18:39:21 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 993fd001 test_https_time_out: fixed broken check
993fd001 is described below

commit 993fd001ab578ecfc9edd2ffad6b18ab8f911b90
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 12 19:55:07 2021 +0300

    test_https_time_out: fixed broken check
    
    The old check "send () == 0" was always wrong. send() never returns zero.
    As a result, the test checks nothing.
---
 src/testcurl/https/test_https_time_out.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/testcurl/https/test_https_time_out.c 
b/src/testcurl/https/test_https_time_out.c
index ca214315..e77c8c66 100644
--- a/src/testcurl/https/test_https_time_out.c
+++ b/src/testcurl/https/test_https_time_out.c
@@ -88,7 +88,7 @@ test_tls_session_time_out (gnutls_session_t session, int port)
 
   /* check that server has closed the connection */
   /* TODO better RST trigger */
-  if (send (sd, "", 1, 0) == 0)
+  if (send (sd, "", 1, 0) >= 0)
   {
     fprintf (stderr, "Connection failed to time-out\n");
     MHD_socket_close_chk_ (sd);

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