X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp_command.c;h=9b1825d0eae7ce03f04048d8fa1967b8fab456a9;hb=3fe6e057c6fbe85ead57eae7f378c755cbf2e6e2;hp=6e80a52f153c28fbbebd85994d9545a3beedce48;hpb=2cfd7518dc740c913602ea8306ec8f27509b00d4;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index 6e80a52..9b1825d 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -142,11 +142,6 @@ void http_session_destroy(struct http_session *s) if (s->destroy_counter != s->activity_counter) must_destroy = 0; - /* only if there are no active Z39.50 clients we will allow it to be - destroyed */ - if (session_active_clients(s->psession)) - must_destroy = 0; - s->destroy_counter = s->activity_counter = 0; if (must_destroy) { @@ -166,6 +161,10 @@ void http_session_destroy(struct http_session *s) destroy_session(s->psession); nmem_destroy(s->nmem); } + else { + yaz_log(YLOG_LOG, "Active clients on session %u. Waiting for new timeout.", s->session_id); + } + } static const char *get_msg(enum pazpar2_error_code code)