]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: test-program-client-net: Handle test client connections non-blocking.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 25 Feb 2018 17:03:04 +0000 (18:03 +0100)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 25 Jun 2019 09:22:30 +0000 (12:22 +0300)
src/lib-program-client/test-program-client-net.c

index 86ca4b0921287272feef17cbb5aac03773312cd0..55b11fcbac663e82e92e3d66d6495edacb610fbb 100644 (file)
@@ -238,6 +238,8 @@ static void test_program_connected(struct test_server *server)
        if (fd < 0)
                i_fatal("Failed to accept connection: %m");
 
+       net_set_nonblock(fd, TRUE);
+
        pool_t pool = pool_alloconly_create("test_program client", 1024);
        client = p_new(pool, struct test_client, 1);
        client->pool = pool;