X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp_command.c;h=854de136f9ad8a83b7ee732284427d725b75de8d;hb=6d01755305a7afba15ed4bc90ac9c149ee7d130e;hp=17521311c92d14f0269dfa08c8b2ea641df05aa5;hpb=fa325dc3607ed67eeea472f90a67ca35b6739c30;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index 1752131..854de13 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1,5 +1,5 @@ /* This file is part of Pazpar2. - Copyright (C) 2006-2011 Index Data + Copyright (C) 2006-2012 Index Data Pazpar2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -204,7 +204,7 @@ void http_session_destroy(struct http_session *s) nmem_destroy(s->nmem); } else { - yaz_log(http_sessions->log_level, "Session %u destroyed delayed. Active clients (%d-%d). Waiting for new timeout.", + yaz_log(http_sessions->log_level, "Session %u destroying delayed. Active clients (%d-%d). Waiting for new timeout.", s->session_id, s->activity_counter, s->destroy_counter); } @@ -858,7 +858,6 @@ static void show_record(struct http_channel *c, struct http_session *s) { struct http_response *rs = c->response; struct http_request *rq = c->request; - //struct http_session *s = locate_session(c); struct record_cluster *rec, *prev_r, *next_r; struct record *r; struct conf_service *service; @@ -886,7 +885,6 @@ static void show_record(struct http_channel *c, struct http_session *s) { error(rs, PAZPAR2_RECORD_MISSING, idstr); } - //release_session(c, s); return; } if (offsetstr) @@ -954,7 +952,6 @@ static void show_record(struct http_channel *c, struct http_session *s) response_close(c, "record"); } show_single_stop(s->psession, rec); - //release_session(c, s); } static void cmd_record_ready(void *data) @@ -1060,6 +1057,7 @@ static void show_records_ready(void *data) else { /* some error message */ } + release_session(c,s); } static void cmd_show(struct http_channel *c)