mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-29 04:09:31 +03:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user