diff options
Diffstat (limited to 'doc/vmod-dbrw.texi')
-rw-r--r-- | doc/vmod-dbrw.texi | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/vmod-dbrw.texi b/doc/vmod-dbrw.texi index 82adda2..40fc84d 100644 --- a/doc/vmod-dbrw.texi +++ b/doc/vmod-dbrw.texi @@ -27,13 +27,13 @@ @copying Published by the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -Copyright @copyright{} 2013-2017 Sergey Poznyakoff +Copyright @copyright{} 2013-2018 Sergey Poznyakoff Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover, and no Back-Cover texts. A copy of the license is included in the section entitled ``GNU Free @@ -307,12 +307,27 @@ section name is @samp{client}. @cindex certificate authority file, SSL @item cacert=@var{filename} Use secure connection to the database server via SSL. The @var{filename} argument is a full pathname of the certificate authority file. +@kwindex timeout +@cindex timeout, idle, SQL +@cindex idle timeout, SQL +@item timeout=@var{n} +Sets idle timeout for a single connection. The connection will be +closed and opened again if the module is to use it after @var{n} or +more seconds since its last use. Set @samp{timeout=-1} to disable idle +timeout (session will remain open until the SQL server closes it). Set +@samp{timeout=0} to close the connection after each request (not +recommended). + +The default depends on the selected SQL backend. For MySQL, it equals +the value of the @samp{wait_timeout} global variable. For PostgreSQL, +it is @samp{-1}. + @kindex options @cindex options, PostgreSQL @item options=@var{string} (Postgres-specific) Connection options. @kindex user |