]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: test-smtp-server-errors: Add more debug messages for the server.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 8 Apr 2018 13:28:59 +0000 (15:28 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 12 Apr 2018 10:35:30 +0000 (10:35 +0000)
src/lib-smtp/test-smtp-server-errors.c

index 019e9cdc5e168ba2d63cabed2b45d0146f9a8a74..f868d7fe5a28e8523a7839409f4d56c7911df427 100644 (file)
@@ -1405,6 +1405,10 @@ static void server_connection_destroy(void *context)
 {
        struct server_connection *sconn =
                (struct server_connection *)context;
+
+       if (debug)
+               i_debug("Connection destroyed");
+
        i_free(sconn);
 }
 
@@ -1423,6 +1427,9 @@ server_connection_accept(void *context ATTR_UNUSED)
                i_fatal("test server: accept() failed: %m");
        }
 
+       if (debug)
+               i_debug("Accepted connection");
+
        sconn = i_new(struct server_connection, 1);
 
        server_callbacks.conn_destroy = server_connection_destroy;
@@ -1456,6 +1463,9 @@ test_server_run(const struct smtp_server_settings *smtp_set)
 
        io_loop_run(ioloop);
 
+       if (debug)
+               i_debug("Server finished");
+
        /* close server socket */
        io_remove(&io_listen);
        timeout_remove(&to);