diff options
-rw-r--r-- | NEWS | 7 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/tbf.c | 9 | ||||
-rw-r--r-- | src/tbf.h | 4 | ||||
-rw-r--r-- | src/vmod_tbf.vcc | 2 |
5 files changed, 17 insertions, 7 deletions
@@ -1,10 +1,15 @@ | |||
1 | vmod-tbf -- history of user-visible changes. 2014-11-13 | 1 | vmod-tbf -- history of user-visible changes. 2016-01-20 |
2 | Copyright (C) 2013-2014 Sergey Poznyakoff | 2 | Copyright (C) 2013-2014 Sergey Poznyakoff |
3 | See the end of file for copying conditions. | 3 | See the end of file for copying conditions. |
4 | 4 | ||
5 | Please send vmod-tbf bug reports to <gray@gnu.org> | 5 | Please send vmod-tbf bug reports to <gray@gnu.org> |
6 | 6 | ||
7 | 7 | ||
8 | Version 2.1, (git) | ||
9 | |||
10 | Support for Varnishapi 4.1 | ||
11 | |||
12 | |||
8 | Version 2.0, 2014-11-13 | 13 | Version 2.0, 2014-11-13 |
9 | 14 | ||
10 | Support for VCL 4.0 | 15 | Support for VCL 4.0 |
diff --git a/configure.ac b/configure.ac index 8041a57..58f7633 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -14,7 +14,7 @@ | |||
14 | # You should have received a copy of the GNU General Public License | 14 | # You should have received a copy of the GNU General Public License |
15 | # along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. | 15 | # along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. |
16 | AC_PREREQ(2.69) | 16 | AC_PREREQ(2.69) |
17 | AC_INIT([vmod-tbf], 2.0, [gray@gnu.org]) | 17 | AC_INIT([vmod-tbf], 2.0.90, [gray@gnu.org]) |
18 | AC_CONFIG_AUX_DIR([build-aux]) | 18 | AC_CONFIG_AUX_DIR([build-aux]) |
19 | AC_CONFIG_MACRO_DIR([m4]) | 19 | AC_CONFIG_MACRO_DIR([m4]) |
20 | AC_CONFIG_SRCDIR(src/vmod_tbf.vcc) | 20 | AC_CONFIG_SRCDIR(src/vmod_tbf.vcc) |
@@ -335,10 +335,13 @@ tbf_open_safe(const char *params) | |||
335 | } | 335 | } |
336 | 336 | ||
337 | int | 337 | int |
338 | tbf_init(struct vmod_priv *priv, const struct VCL_conf *vclconf) | 338 | tbf_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e) |
339 | { | 339 | { |
340 | VTAILQ_INIT(&keylock_head); | 340 | if (e == VCL_EVENT_LOAD) { |
341 | VTAILQ_INIT(&keylock_avail); | 341 | VTAILQ_INIT(&keylock_head); |
342 | VTAILQ_INIT(&keylock_avail); | ||
343 | } | ||
344 | return 0; | ||
342 | } | 345 | } |
343 | 346 | ||
344 | void | 347 | void |
@@ -22,7 +22,9 @@ | |||
22 | #include <inttypes.h> | 22 | #include <inttypes.h> |
23 | #include <sys/stat.h> | 23 | #include <sys/stat.h> |
24 | #include <sys/time.h> | 24 | #include <sys/time.h> |
25 | #include "vrt.h" | 25 | #include <errno.h> |
26 | #include <vcl.h> | ||
27 | #include <vrt.h> | ||
26 | #include "vcc_if.h" | 28 | #include "vcc_if.h" |
27 | #include "pthread.h" | 29 | #include "pthread.h" |
28 | 30 | ||
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 | |||
@@ -24,7 +24,7 @@ For a detailed documentation, please see vmod-tbf(3) manual page. | |||
24 | DESCRIPTION | 24 | DESCRIPTION |
25 | =========== | 25 | =========== |
26 | 26 | ||
27 | $Init tbf_init | 27 | $Event tbf_event |
28 | $Function VOID open(STRING, STRING) | 28 | $Function VOID open(STRING, STRING) |
29 | $Function VOID close() | 29 | $Function VOID close() |
30 | $Function VOID sync() | 30 | $Function VOID sync() |