path: root/NEWS
authorSergey Poznyakoff <>2018-01-30 21:00:05 (GMT)
committer Sergey Poznyakoff <>2018-01-30 21:06:11 (GMT)
commit4fef83230e851189fd3541f095c47a952968a411 (patch) (side-by-side diff)
tree021413ec3602ca4d0e0a0ee0f588d0a2782155ae /NEWS
parente946449ccf15a0f44f402b03812d31d5f8ef4f7b (diff)
Introduce connection idle timeout.
* NEWS: Updated. * Version 2.2.90 * doc/vmod-dbrw.3: Document connection idle timeout. * doc/vmod-dbrw.texi: Likewise. * src/dbrw.h (dbrw_backend) <sql_idle_timeout>: New method. (dbrw_config)<idle_timeout>: New member. (dbrw_connection)<timestamp>: New member. (sql_idle_timeout): New proto. * src/mysql.c (vmod_mysql_data) <mysql>: Change storage. All uses changed. (s_mysql_idle_timeout): New function. * src/sql.c (sql_idle_timeout): New function. (sql_query): Update connection timestamp. (sql_idle_timeout): New function. * src/vmod_dbrw.c (dbrw_connection_get): Force disconnect if connection remained idle for too long. Initialize cfg->idle_timeout. (vmod_config): New parameter 'timeout='
Diffstat (limited to 'NEWS') (more/less context) (ignore whitespace changes)
1 files changed, 18 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 6895824..913b0f9 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,24 @@
-vmod-dbrw -- history of user-visible changes. 2017-08-10
-Copyright (C) 2013-2017 Sergey Poznyakoff
+vmod-dbrw -- history of user-visible changes. 2018-01-30
See the end of file for copying conditions.
Please send vmod-dbrw bug reports to <>
+Version 2.2.90 (Git)
+* SQL idle timeout
+For MySQL backend, the default connection idle timeout is set equal to
+the value of the MySQL variable 'wait_timeout'. For Postgres, default
+idle timeout is not yet implemented.
+Idle timeout can be configured using the timeout configuration option,
+ dbrw.config("mysql", "database=dbrw;user=proxy;timeout=600",
+ {"select dest,pattern,value,flags from rewrite where
+ locate(url,'$url') = 1 order by weight asc;"});
Version 2.2, 2017-08-10
* Support for Varnish 5.1
@@ -31,7 +46,7 @@ Initial release
Copyright information:
-Copyright (C) 2013-2017 Sergey Poznyakoff
+Copyright (C) 2013-2018 Sergey Poznyakoff
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the

Return to:

Send suggestions and report system problems to the System administrator.