Skip to content

Commit

Permalink
lib-smtp: test-smtp-server-errors: Add more debug messages for the se…
Browse files Browse the repository at this point in the history
…rver.
  • Loading branch information
stephanbosch authored and sirainen committed Apr 12, 2018
1 parent dcde0ac commit fe0d54c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib-smtp/test-smtp-server-errors.c
Expand Up @@ -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);
}

Expand All @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit fe0d54c

Please sign in to comment.