aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS7
-rw-r--r--configure.ac2
-rw-r--r--src/tbf.c9
-rw-r--r--src/tbf.h4
-rw-r--r--src/vmod_tbf.vcc2
5 files changed, 17 insertions, 7 deletions
diff --git a/NEWS b/NEWS
index b87dafa..f324433 100644
--- a/NEWS
+++ b/NEWS
@@ -1,2 +1,2 @@
-vmod-tbf -- history of user-visible changes. 2014-11-13
+vmod-tbf -- history of user-visible changes. 2016-01-20
Copyright (C) 2013-2014 Sergey Poznyakoff
@@ -7,2 +7,7 @@ Please send vmod-tbf bug reports to <gray@gnu.org>
+Version 2.1, (git)
+
+Support for Varnishapi 4.1
+
+
Version 2.0, 2014-11-13
diff --git a/configure.ac b/configure.ac
index 8041a57..58f7633 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,3 +16,3 @@
AC_PREREQ(2.69)
-AC_INIT([vmod-tbf], 2.0, [gray@gnu.org])
+AC_INIT([vmod-tbf], 2.0.90, [gray@gnu.org])
AC_CONFIG_AUX_DIR([build-aux])
diff --git a/src/tbf.c b/src/tbf.c
index dadb9cc..3790a01 100644
--- a/src/tbf.c
+++ b/src/tbf.c
@@ -337,6 +337,9 @@ tbf_open_safe(const char *params)
int
-tbf_init(struct vmod_priv *priv, const struct VCL_conf *vclconf)
+tbf_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
{
- VTAILQ_INIT(&keylock_head);
- VTAILQ_INIT(&keylock_avail);
+ if (e == VCL_EVENT_LOAD) {
+ VTAILQ_INIT(&keylock_head);
+ VTAILQ_INIT(&keylock_avail);
+ }
+ return 0;
}
diff --git a/src/tbf.h b/src/tbf.h
index 7ee9f7e..ea0aa6e 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -24,3 +24,5 @@
#include <sys/time.h>
-#include "vrt.h"
+#include <errno.h>
+#include <vcl.h>
+#include <vrt.h>
#include "vcc_if.h"
diff --git a/src/vmod_tbf.vcc b/src/vmod_tbf.vcc
index bb03d44..28d1af0 100644
--- a/src/vmod_tbf.vcc
+++ b/src/vmod_tbf.vcc
@@ -26,3 +26,3 @@ DESCRIPTION
-$Init tbf_init
+$Event tbf_event
$Function VOID open(STRING, STRING)

Return to:

Send suggestions and report system problems to the System administrator.