[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 07/08: test_large_put: added test with incr
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 07/08: test_large_put: added test with incremental read and limited buffer |
Date: |
Sun, 22 Jan 2017 22:12:16 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 2618c8c42fc43a0772fe9bd68bccc2d5fcd8693a
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Jan 22 23:11:01 2017 +0300
test_large_put: added test with incremental read and limited buffer
---
src/testcurl/Makefile.am | 7 +++++++
src/testcurl/test_large_put.c | 10 +++++-----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/src/testcurl/Makefile.am b/src/testcurl/Makefile.am
index b033fc92..7d315d5b 100644
--- a/src/testcurl/Makefile.am
+++ b/src/testcurl/Makefile.am
@@ -32,6 +32,7 @@ check_PROGRAMS = \
test_get_sendfile11 \
test_put11 \
test_large_put11 \
+ test_large_put_inc11 \
test_long_header \
test_long_header11 \
test_get_chunked \
@@ -284,6 +285,12 @@ test_large_put11_LDADD = \
$(top_builddir)/src/microhttpd/libmicrohttpd.la \
@LIBCURL@
+test_large_put_inc11_SOURCES = \
+ test_large_put.c
+test_large_put_inc11_LDADD = \
+ $(top_builddir)/src/microhttpd/libmicrohttpd.la \
+ @LIBCURL@
+
test_long_header_SOURCES = \
test_long_header.c
test_long_header_LDADD = \
diff --git a/src/testcurl/test_large_put.c b/src/testcurl/test_large_put.c
index cf827a93..7a8be9d2 100644
--- a/src/testcurl/test_large_put.c
+++ b/src/testcurl/test_large_put.c
@@ -189,7 +189,7 @@ testPutInternalThread ()
d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
1080,
NULL, NULL, &ahc_echo, &done_flag,
- MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)
(1024*1024),
+ MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)(incr_read
? 1024 : (PUT_SIZE * 4)),
MHD_OPTION_END);
if (d == NULL)
return 1;
@@ -247,7 +247,7 @@ testPutThreadPerConn ()
d = MHD_start_daemon (MHD_USE_THREAD_PER_CONNECTION |
MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
1081,
NULL, NULL, &ahc_echo, &done_flag,
- MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)
(1024*1024),
+ MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)(incr_read
? 1024 : (PUT_SIZE * 4)),
MHD_OPTION_END);
if (d == NULL)
return 16;
@@ -309,7 +309,7 @@ testPutThreadPool ()
1081,
NULL, NULL, &ahc_echo, &done_flag,
MHD_OPTION_THREAD_POOL_SIZE, CPU_COUNT,
- MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)
(1024*1024),
+ MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)(incr_read
? 1024 : (PUT_SIZE * 4)),
MHD_OPTION_END);
if (d == NULL)
return 16;
@@ -385,8 +385,8 @@ testPutExternal ()
d = MHD_start_daemon (MHD_USE_ERROR_LOG,
1082,
NULL, NULL, &ahc_echo, &done_flag,
- MHD_OPTION_CONNECTION_MEMORY_LIMIT,
- (size_t) (PUT_SIZE * 4), MHD_OPTION_END);
+ MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t)(incr_read
? 1024 : (PUT_SIZE * 4)),
+ MHD_OPTION_END);
if (d == NULL)
return 256;
c = curl_easy_init ();
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (44eec406 -> c623d35d), gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 05/08: test_large_put: initialise test buffer with varied data to detect more errors., gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 07/08: test_large_put: added test with incremental read and limited buffer,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 01/08: test_large_put: updated to use correct check for "11" in name and return '99' in case of system failures., gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 03/08: test_large_put: use proper types for size variables, gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 02/08: test_large_put: renamed functions for readability, gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 04/08: test_large_put: support incremental reading of incoming data, gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 08/08: test_large_put: added poll() and epoll testing., gnunet, 2017/01/22
- [GNUnet-SVN] [libmicrohttpd] 06/08: test_large_put: added verbosity, gnunet, 2017/01/22