--- a/src/server/daemon/httprequest.c Sat Aug 24 22:37:12 2024 +0200 +++ b/src/server/daemon/httprequest.c Fri Sep 13 23:19:04 2024 +0200 @@ -146,6 +146,8 @@ } int nsapi_start_request(HTTPRequest *request, threadpool_t *thrpool, EventHandler *ev, pool_handle_t *pool) { + log_ereport(LOG_DEBUG, "trace reqid: %016llx nsapi_start_request", (unsigned long long int)request->connection->id); + // create nsapi data structures NSAPISession *sn = nsapisession_create(pool); if(sn == NULL) { @@ -514,6 +516,8 @@ */ int nsapi_handle_request(NSAPISession *sn, NSAPIRequest *rq) { + log_ereport(LOG_DEBUG, "trace reqid: %016llx nsapi_handle_request", (unsigned long long int)sn->connection->id); + int r = REQ_NOACTION; do { switch(rq->phase) { @@ -617,6 +621,8 @@ rq->finished = TRUE; request_free_resources(sn, rq); + log_ereport(LOG_DEBUG, "trace reqid: %016llx nsapi_finish_request", (unsigned long long int)sn->connection->id); + WSBool read_stream_eof = httpstream_eof(sn->sn.csd); if(!read_stream_eof) { log_ereport(LOG_WARN, "request input stream not closed"); @@ -661,6 +667,7 @@ * unref it */ } else { + log_ereport(LOG_DEBUG, "trace reqid: %016llx connection destroyed | keep_alive failed", (unsigned long long int)sn->connection->id); connection_destroy(sn->connection); }