aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2016-04-21Version 2.0.90varnish-4.0Sergey Poznyakoff2
2016-02-09BugfixesSergey Poznyakoff1
* src/tbf.c (new_node): Reset busy flag. (log_node): Fix specifiers. Increase tc->num.
2016-02-09One more fix: use PRIu32Sergey Poznyakoff1
2016-02-09CleanupSergey Poznyakoff1
* src/tbf.c: Use %zu to log size_t values; remove unused variables and functions.
2016-02-09Cleanup of the mergeSergey Poznyakoff4
* configure.ac: Don't check for dbm. Enable silent rules. * src/tbf.c: Restore the init function. * src/vmod_tbf.vcc: Likewise.
2016-02-08Fix debug levels. Document data structures.Sergey Poznyakoff2
2016-02-08Update the docs.Sergey Poznyakoff2
2016-02-08Change dump format; optionally dump the tree at exit; provide statisticsSergey Poznyakoff6
(port f490124e0). * src/tbf.c: Store tree in the global variable. Optionally save it to a disk file at exit. Provide statistics, dumping and loading functions. * src/tbf.h: Move data type declarations here. * src/vmod_tbf.vcc (load, dump_at_exit) (log_tree, log_stats): New functions. (dump, gc, rate, check): Remove PRIV_VCL parameter. * tests/Makefile.am (test05.vtc): New test case. * tests/test05.vtc: New file.
2016-02-08Keep TBF data in a binary tree instead of DBM database (port 6ea9edf0).Sergey Poznyakoff8
* configure.ac: Don't check for libdb. * src/tbf.c: Rewrite using binary tree. * src/vmod_tbf.vcc (open, close, sync): Remove. (rate, check): Add PRIV_VCL argument. (debug,dump,gc,set_gc_interval): New functions. * tests/test00.vtc: Remove calls to tbf.open/close * tests/test01.vtc: Likewise. * tests/test02.vtc: Likewise. * tests/test03.vtc: Likewise. * NEWS: Document changes. * src/vmod-tbf.3: Likewise.
2014-11-13Version 2.0release-2.0Sergey Poznyakoff3
2014-11-02Fix compilation on some platformsSergey Poznyakoff2
* src/tbf.h: Place system includes before varnish ones. One of the varnish headers (common.h) defines __unused which can conflict with parameter declarations in some system headers (bits/stat.h on GNU/Linux, for example).
2014-11-01Report version of varnish at the end of configureSergey Poznyakoff1
2014-11-01Update copyright yearsSergey Poznyakoff17
2014-11-01Support for VCL 4.0Sergey Poznyakoff14
* NEWS: Update. * configure.ac: Version 1.0.90 Detect Varnish version, set up the C defines and automake conditionals to indicate it. * src/.gitignore: Update. * src/Makefile.am: Don't distribute vcc_if.c and vcc_if.h, build them for the current Varnish version. * src/tbf.h: New file. * src/getla.c: Include tbf.h, rewrite to compile with both 3.0 and 4.0 * src/sleep.c: Likewise. * src/tbf.c: Likewise. * src/time.c: Likewise. * src/vmod_tbf.vcc: Rewrite using v4.0 format. * tests/.gitignore: New file. * tests/Makefile.am: Build test00.vtc and test02.vtc * tests/test00.vtc: Rename to tests/test00.vti, add conditional compilation directives. * tests/test02.vtc: Rename to tests/test02.vti, add conditional compilation directives.
2013-10-19Version 1.0release-1.0Sergey Poznyakoff4
2013-10-19Get rid of the --with-vmod-dir option.Sergey Poznyakoff2
* Makefile.am: Add default options for distcheck. * configure.ac: Remove --with-vmod-dir, default to the standard Varnish module location, Provide the --without-vmoddir option for use in distcheck. * README: Update.
2013-08-14New function tbf.sleepSergey Poznyakoff4
* src/Makefile.am: Add new file. * src/sleep.c: New file. * src/vmod-tbf.3: Document the sleep call. * src/vmod_tbf.vcc (sleep): New function.
2013-08-05Minor changeSergey Poznyakoff1
* src/getla.c: Move system-dependent part into a separate function.
2013-08-02Switch to CDB environment.Sergey Poznyakoff8
* configure.ac: Version 0.99.91 * src/tbf.c (dbdir): New static. (tbf_set_db_name): Remove. (tbf_set_db_dir): New function. (tbf_open): Rename the parameter and related variables. Create a CDB environment and the database in it. (vmod_open): Change semantics of the first argument. * src/vmod-tbf.3: Update. * tests/Makefile.am (distclean-local): New rule, instead of DISTCLEANFILES. * tests/test00.vtc: Update call to tbf.open. * tests/test01.vtc: Likewise. * tests/test02.vtc: Likewise. * tests/test03.vtc: Likewise.
2013-08-01Serialize read/write accesses.Sergey Poznyakoff1
* src/tbf.c (keylock): New struct. (keylock_head, keylock_avail): New statics. (keylock_find, keylock_find_safe) (keylock_remove_safe): New functions. (tbf_open): Rename to tbf_open_safe. (tbf_open_internal): Rename to tbf_open. (vmod_rate): Rewrite using keylocks to ensure the record is not modified by another thread between calls to get and push.
2013-07-29Use EX/EE for examples in the manpage.Sergey Poznyakoff1
2013-07-23Fix unbalanced quotes.Sergey Poznyakoff1
2013-07-23Add docs.Sergey Poznyakoff6
* THANKS: New file. * configure.ac (AC_CONFIG_SRCDIR): Use src/vmod_tbf.vcc as an anchor. * src/Makefile.am (dist_man_MANS): Distribute the manpage. * src/vmod_tbf.c: Rename to src/tbf.c * src/vmod-tbf.3: New file. * src/vmod_tbf.3: New file.
2013-07-22New function "check"Sergey Poznyakoff6
* src/vmod_tbf.c (vmod_rate): Use %lu instead of %z (vmod_check): New function. * src/vmod_tbf.vcc (check): New function. * tests/Makefile.am: Add new files. * tests/test02.vtc: New file. * tests/test03.vtc: New file. * tests/time01.vtc: New file.
2013-07-22Add new functions.Sergey Poznyakoff8
* configure.ac: Check for sys/sysinfo.h, sysinfo and getloadavg * src/Makefile.am: Add new sources * src/getla.c: New file * src/time.c: New file * src/vmod_tbf.vcc (getla, systime) (strftime): New functions. * tests/Makefile.am: Add new testcase. * tests/time00.vtc: New testcase.
2013-07-22Improve debuggingSergey Poznyakoff1
* src/vmod_tbf.c (debugprt): Declare unconditionally. (debug): Rewrite macro. All uses changed, (debug_level): New static. (tbf_disabled): New static. (MKW_DEBUG): New keyword code. (mode_kw_tab): New keyword "debug=". (tbf_open_internal): Handle "debug=" keyword. Set tbf_disabled if unable to open database. (tbf_open): Return immediately if tbf_disabled is set. (vmod_close): Clear tbf_disabled.
2013-07-22BugfixesSergey Poznyakoff1
2013-07-21Initial commitSergey Poznyakoff16

Return to:

Send suggestions and report system problems to the System administrator.