I think we did some keep-alive.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4684 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-12-21 00:13:03 +00:00
parent e7771f539d
commit 58e75ee276
2 changed files with 36 additions and 9 deletions

View File

@ -697,6 +697,10 @@ static void _test_http_thread(void* data)
assert(WEXITSTATUS(r) == 0);
tf_printf("curl returned %d\n", WEXITSTATUS(r));
r = system("curl -v http://localhost:23456/hello http://localhost:23456/hello http://localhost:23456/hello");
assert(WEXITSTATUS(r) == 0);
tf_printf("curl returned %d\n", WEXITSTATUS(r));
test->done = true;
/* All to wake up the loop. */
@ -708,7 +712,7 @@ static void _test_http_handler(tf_http_request_t* request)
{
const char* headers[] =
{
"Connection", "close",
"User-Agent", "TildeFriends/1.0",
};
const char* k_payload = "Hello, world!\n";
tf_http_respond(request, 200, headers, 1, k_payload, strlen(k_payload));