X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_send.c;h=9a35fc99f920beed52e19c12bab9f9dc308027e4;hb=42f69f545fad18480d728bb6f25273976a0c01e0;hp=6f06673ce5aabc64728980ddfed259a65d417d53;hpb=ac4e01ba1a2f302bf31dd511a7aff8da78660b15;p=paraslash.git diff --git a/http_send.c b/http_send.c index 6f06673c..9a35fc99 100644 --- a/http_send.c +++ b/http_send.c @@ -22,11 +22,9 @@ #include "send.h" #include "sched.h" #include "vss.h" -#include "close_on_fork.h" #include "net.h" #include "fd.h" #include "chunk_queue.h" -#include "acl.h" /** Message sent to clients that do not send a valid get request. */ #define HTTP_ERR_MSG "HTTP/1.0 400 Bad Request\n" @@ -77,6 +75,12 @@ static void http_shutdown_clients(void) shutdown_clients(hss); } +static void http_shutdown(void) +{ + http_shutdown_clients(); + generic_acl_deplete(&hss->acl); +} + static int queue_chunk_or_shutdown(struct sender_client *sc, struct sender_status *ss, const char *buf, size_t num_bytes) { @@ -266,7 +270,7 @@ static void http_send_init(void) const struct sender http_sender = { .name = "http", .init = http_send_init, - .shutdown = http_shutdown_clients, + .shutdown = http_shutdown, .pre_select = http_pre_select, .post_select = http_post_select, .send = http_send,