]> 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)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Fri, 27 Apr 2018 10:40:00 +0000 (13:40 +0300)
src/lib-smtp/test-smtp-server-errors.c

index 65fd399b7722dbd31e972a4b057ad8d73613e37c..e337e50699f69372754ce9b501ee63a91af295d6 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);