X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp.c;h=59d0050e8a4c41bdc5379f8e2593a8c9e945621e;hb=b73890ede1ee6eeb8a07937733871077df6f15b9;hp=c383cba6e0ba338811970eb33d18bc661e3ff37e;hpb=6c5a8674f20238471f1556ac8cc7a09ae3c0e1e8;p=pazpar2-moved-to-github.git diff --git a/src/http.c b/src/http.c index c383cba..59d0050 100644 --- a/src/http.c +++ b/src/http.c @@ -797,7 +797,7 @@ static int http_proxy(struct http_request *rq) p->first_response = 1; c->proxy = p; // We will add EVENT_OUTPUT below - p->iochan = iochan_create(sock, proxy_io, EVENT_INPUT); + p->iochan = iochan_create(sock, proxy_io, EVENT_INPUT, "http_proxy"); iochan_setdata(p->iochan, p); iochan_add(ser->iochan_man, p->iochan); @@ -1170,7 +1170,7 @@ static void http_accept(IOCHAN i, int event) enable_nonblock(s); yaz_log(YLOG_DEBUG, "New command connection"); - c = iochan_create(s, http_io, EVENT_INPUT | EVENT_EXCEPT); + c = iochan_create(s, http_io, EVENT_INPUT | EVENT_EXCEPT, "http_session_socket"); ch = http_channel_create(server->http_server, inet_ntoa(addr.sin_addr), server); @@ -1245,7 +1245,7 @@ int http_init(const char *addr, struct conf_server *server) server->http_server->listener_socket = l; - c = iochan_create(l, http_accept, EVENT_INPUT | EVENT_EXCEPT); + c = iochan_create(l, http_accept, EVENT_INPUT | EVENT_EXCEPT, "http_server"); iochan_setdata(c, server); iochan_add(server->iochan_man, c);