X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fhttp_command.c;h=f736b38b6af8632b54ff80ef4fa531b2a0e9e8e9;hb=ef0a61b93862f0bbb99b88f2d4460ad75509c814;hp=3723fbeebe0152c523bb37ad4724bb2becfc5880;hpb=4457e33ec5862d35024c649ff307ac7a2ac43598;p=pazpar2-moved-to-github.git
diff --git a/src/http_command.c b/src/http_command.c
index 3723fbe..f736b38 100644
--- a/src/http_command.c
+++ b/src/http_command.c
@@ -126,7 +126,7 @@ void http_sessions_destroy(http_sessions_t hs)
{
struct http_session *s_next = s->next;
iochan_destroy(s->timeout_iochan);
- destroy_session(s->psession);
+ session_destroy(s->psession);
nmem_destroy(s->nmem);
s = s_next;
}
@@ -199,7 +199,7 @@ void http_session_destroy(struct http_session *s)
{ /* destroying for real */
yaz_log(http_sessions->log_level, "%p HTTP Session %u destroyed", s, s->session_id);
iochan_destroy(s->timeout_iochan);
- destroy_session(s->psession);
+ session_destroy(s->psession);
http_session_use(-1);
nmem_destroy(s->nmem);
}
@@ -574,7 +574,7 @@ static void cmd_termlist(struct http_channel *c)
size_t session_get_memory_status(struct session *session);
-static void (struct http_channel *c, struct http_session *s)
+static void session_status(struct http_channel *c, struct http_session *s)
{
size_t session_nmem;
wrbuf_printf(c->wrbuf, "%u\n", s->activity_counter);
@@ -666,6 +666,14 @@ static void bytarget_response(struct http_channel *c) {
wrbuf_printf(c->wrbuf, "" ODR_INT_PRINTF "\n", ht[i].hits);
wrbuf_printf(c->wrbuf, "%d\n", ht[i].diagnostic);
+ if (ht[i].diagnostic)
+ {
+ wrbuf_puts(c->wrbuf, "");
+ if (ht[i].addinfo)
+ wrbuf_xmlputs(c->wrbuf, ht[i].addinfo);
+ wrbuf_puts(c->wrbuf, "\n");
+ }
+
wrbuf_printf(c->wrbuf, "%d\n", ht[i].records);
wrbuf_puts(c->wrbuf, "");