Skip to content

Commit

Permalink
lib-lua: test-lua-http-client - Prevent HTTP client context from trav…
Browse files Browse the repository at this point in the history
…ersing fork

The children will start fighting over the connection FDs and the test will
panic out:

DNS: Panic: epoll_ctl(mod, 8) failed: No such file or directory
CLIENT: Panic: epoll_ctl(mod, 8) failed: No such file or directory

This happens very infrequently.
  • Loading branch information
stephanbosch committed Nov 19, 2024
1 parent 1b9a658 commit 6dafabe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-lua/test-lua-http-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "iostream-ssl.h"
#include "iostream-ssl-test.h"
#include "iostream-openssl.h"
#include "http-client.h"
#include "test-common.h"
#include "test-subprocess.h"
#include "dlua-script-private.h"
Expand Down Expand Up @@ -437,6 +438,7 @@ test_client_init(test_client_init_t client_test)
static void test_client_deinit(void)
{
timeout_remove(&to_client_progress);
http_client_global_context_free();
}

static void test_client_run(test_client_init_t client_test)
Expand Down

0 comments on commit 6dafabe

Please sign in to comment.