]> 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@dovecot.fi>
Sun, 18 Mar 2018 10:53:18 +0000 (12:53 +0200)
src/lib-program-client/test-program-client-net.c

index 5ee906dc5ee65a3be4e81ddc387dd595d27ef864..b337279360543fae0c6838c75ac3fdfb6a31983f 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;