]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - http_send.c
server: Free parse result also in afs.
[paraslash.git] / http_send.c
index 3df694de912e5a9d6e85544b3a68e68168004e31..9a35fc99f920beed52e19c12bab9f9dc308027e4 100644 (file)
 #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,6 +270,7 @@ static void http_send_init(void)
 const struct sender http_sender = {
        .name = "http",
        .init = http_send_init,
+       .shutdown = http_shutdown,
        .pre_select = http_pre_select,
        .post_select = http_post_select,
        .send = http_send,