X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;f=src%2Fhttp_command.c;h=ffe6b6d853fedbf3ccdffe737e2cc54f3ead3563;hb=ee0c5796c67648c25249bf34c035d512f98e87b4;hp=d6c762d706c521db967192b831fe45e1d5369b26;hpb=088f1bf8fc08ed05157a0fb166a1f10bcf253f7e;p=pazpar2-moved-to-github.git diff --git a/src/http_command.c b/src/http_command.c index d6c762d..ffe6b6d 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); } @@ -534,7 +534,8 @@ static void termlist_response(struct http_channel *c) static void termlist_result_ready(void *data) { - struct http_channel *c = (struct http_channel) data; + struct http_channel *c = (struct http_channel *) data; + yaz_log(c->http_sessions->log_level, "termlist watch released"); termlist_response(c); } @@ -690,7 +691,7 @@ static void bytarget_response(struct http_channel *c) { static void bytarget_result_ready(void *data) { struct http_channel *c = (struct http_channel *) data; - yaz_log(YLOG_DEBUG, "bytarget watch released"); + yaz_log(c->http_sessions->log_level, "bytarget watch released"); bytarget_response(c); } @@ -940,7 +941,7 @@ static void cmd_record(struct http_channel *c) static void cmd_record_ready(void *data) { struct http_channel *c = (struct http_channel *) data; - + yaz_log(c->http_sessions->log_level, "record watch released"); cmd_record(c); } @@ -1022,7 +1023,7 @@ static void show_records(struct http_channel *c, int active) static void show_records_ready(void *data) { struct http_channel *c = (struct http_channel *) data; - + yaz_log(c->http_sessions->log_level, "show watch released"); show_records(c, -1); }