#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"
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)
{
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,