diff -r e35829a3a6d8 -r 0e79e17c70e2 src/server/daemon/sessionhandler.c --- a/src/server/daemon/sessionhandler.c Fri Sep 13 23:19:04 2024 +0200 +++ b/src/server/daemon/sessionhandler.c Sun Sep 15 09:47:36 2024 +0200 @@ -100,6 +100,7 @@ } void connection_destroy(Connection *conn) { + log_ereport(LOG_DEBUG, "trace reqid: %016llx connection_destroy", (unsigned long long int)conn->id); cfg_unref(conn->listener->cfg); conn->close(conn); if(conn->ssl) { @@ -230,6 +231,8 @@ EventHttpIO *io = item->data1; io->error = 4; + log_ereport(LOG_DEBUG, "trace reqid: %016llx request timeout", (unsigned long long int)io->request->connection->id); + if(ev_remove_poll(h, io->request->connection->fd)) { log_ereport(LOG_FAILURE, "sessionhandler: request timeout: cannot remove poll"); } @@ -552,6 +555,8 @@ HttpParser *parser = io->parser; HTTPRequest *request = io->request; + log_ereport(LOG_DEBUG, "trace reqid: %016llx request error", (unsigned long long int)request->connection->id); + if(event->error) { log_ereport(LOG_VERBOSE, "sessionhandler http io error: %d fd: %d", io->error, request->connection->fd); } @@ -675,7 +680,7 @@ log_ereport(LOG_FAILURE, "sessionhandler: keep-alive timeout: cannot remove poll"); } - log_ereport(LOG_DEBUG, "trace reqid: %016llx connection destroyed | keep_alive timeout", (unsigned long long int)conn->id); + log_ereport(LOG_DEBUG, "trace reqid: %016llx keep_alive timeout", (unsigned long long int)conn->id); connection_destroy(conn); free(ioevent); free(item);