[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 18/20: test_digestauth_concurrent: added debug print
From: |
gnunet |
Subject: |
[libmicrohttpd] 18/20: test_digestauth_concurrent: added debug print |
Date: |
Mon, 15 Aug 2022 20:38:44 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit e1d6b7635b9c5a37fb3be5e5748278db64ec1b8b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Aug 15 21:12:06 2022 +0300
test_digestauth_concurrent: added debug print
---
src/testcurl/test_digestauth_concurrent.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/src/testcurl/test_digestauth_concurrent.c
b/src/testcurl/test_digestauth_concurrent.c
index 6d4e591c..efda16b6 100644
--- a/src/testcurl/test_digestauth_concurrent.c
+++ b/src/testcurl/test_digestauth_concurrent.c
@@ -383,6 +383,9 @@ setupCURL (void *cbc, uint16_t port, char *errbuf)
(CURLE_OK != curl_easy_setopt (c, CURLOPT_HTTP_VERSION,
CURL_HTTP_VERSION_1_1)) ||
(CURLE_OK != curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L)) ||
+#ifdef _DEBUG
+ (CURLE_OK != curl_easy_setopt (c, CURLOPT_VERBOSE, 1L)) ||
+#endif /* _DEBUG */
#if CURL_AT_LEAST_VERSION (7, 19, 4)
(CURLE_OK != curl_easy_setopt (c, CURLOPT_PROTOCOLS, CURLPROTO_HTTP)) ||
#endif /* CURL_AT_LEAST_VERSION (7, 19, 4) */
@@ -472,7 +475,6 @@ worker_func (void *param)
req_result = curl_easy_perform (w->c);
if (CURLE_OK != req_result)
{
- fflush (stdout);
if (0 != w->libcurl_errbuf[0])
fprintf (stderr, "Worker %d: first request failed. "
"libcurl error: '%s'.\n"
@@ -483,7 +485,6 @@ worker_func (void *param)
fprintf (stderr, "Worker %d: first request failed. "
"libcurl error: '%s'.\n",
w->workerNumber, curl_easy_strerror (req_result));
- fflush (stderr);
}
else
{
@@ -506,13 +507,16 @@ worker_func (void *param)
printf ("Worker %d: first request successful.\n", w->workerNumber);
w->success++;
}
+#ifdef _DEBUG
+ fflush (stderr);
+ fflush (stdout);
+#endif /* _DEBUG */
/* Second request */
w->cbc.pos = 0;
req_result = curl_easy_perform (w->c);
if (CURLE_OK != req_result)
{
- fflush (stdout);
if (0 != w->libcurl_errbuf[0])
fprintf (stderr, "Worker %d: second request failed. "
"libcurl error: '%s'.\n"
@@ -523,7 +527,6 @@ worker_func (void *param)
fprintf (stderr, "Worker %d: second request failed. "
"libcurl error: '%s'.\n",
w->workerNumber, curl_easy_strerror (req_result));
- fflush (stderr);
}
else
{
@@ -546,6 +549,10 @@ worker_func (void *param)
printf ("Worker %d: second request successful.\n", w->workerNumber);
w->success++;
}
+#ifdef _DEBUG
+ fflush (stderr);
+ fflush (stdout);
+#endif /* _DEBUG */
w->finished = ! 0;
return NULL;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (9a18a4f8 -> c63be03c), gnunet, 2022/08/15
- [libmicrohttpd] 04/20: digestauth: add log warning for empty random data, gnunet, 2022/08/15
- [libmicrohttpd] 01/20: digestauth: use internal header for mutex instead of system header, gnunet, 2022/08/15
- [libmicrohttpd] 06/20: digestauth: warn about RFC2069 used with SHA-256, gnunet, 2022/08/15
- [libmicrohttpd] 05/20: digestauth: corrected log message for RFC2069 mode, gnunet, 2022/08/15
- [libmicrohttpd] 16/20: test_digestauth2: minor improvements, gnunet, 2022/08/15
- [libmicrohttpd] 18/20: test_digestauth_concurrent: added debug print,
gnunet <=
- [libmicrohttpd] 12/20: test_digestauth2: added testing with two requests, gnunet, 2022/08/15
- [libmicrohttpd] 08/20: digestauth: added log messages if realm is rejected due to its size, gnunet, 2022/08/15
- [libmicrohttpd] 03/20: daemon.c: cosmetics, gnunet, 2022/08/15
- [libmicrohttpd] 07/20: digestauth: do not use "algorithm" in response header in RFC2069 mode, gnunet, 2022/08/15
- [libmicrohttpd] 11/20: Added MHD_OPTION_DIGEST_AUTH_NONCE_BIND_TYPE to control how to generate and check nonces for Digest Auth, gnunet, 2022/08/15
- [libmicrohttpd] 10/20: daemon.c: fixed and simplified sockaddr alignment handling, gnunet, 2022/08/15
- [libmicrohttpd] 02/20: microhttpd: minor doxy improvement, gnunet, 2022/08/15
- [libmicrohttpd] 17/20: digestauth: minor comment correction, gnunet, 2022/08/15
- [libmicrohttpd] 15/20: test_digestauth2: added third request with new connection, gnunet, 2022/08/15
- [libmicrohttpd] 19/20: digestauth: updated the method of nonce generation in default mode, gnunet, 2022/08/15