Added query_timeout parameter. For now, it does nothing.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 13 Aug 2009 08:03:27 +0000 (10:03 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 13 Aug 2009 08:03:27 +0000 (10:03 +0200)
It is therefore not documented, either.

src/modules/rlm_sql/conf.h
src/modules/rlm_sql/drivers/lib/.gitignore [deleted file]
src/modules/rlm_sql/rlm_sql.c

index 98307ad..7d28f77 100644 (file)
@@ -47,6 +47,7 @@ typedef struct sql_config {
        int     connect_failure_retry_delay;
        char   *postauth_query;
        char   *allowed_chars;
+       int     query_timeout;
 
        /* individual driver config */
        void    *localcfg;
diff --git a/src/modules/rlm_sql/drivers/lib/.gitignore b/src/modules/rlm_sql/drivers/lib/.gitignore
deleted file mode 100644 (file)
index 8b13789..0000000
+++ /dev/null
@@ -1 +0,0 @@
-
index abcea04..7ce0064 100644 (file)
@@ -108,6 +108,12 @@ static const CONF_PARSER module_config[] = {
         offsetof(SQL_CONFIG,allowed_chars), NULL,
        "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"},
 
+       /*
+        *      This only works for a few drivers.
+        */
+       {"query_timeout", PW_TYPE_INTEGER,
+        offsetof(SQL_CONFIG,query_timeout), NULL, NULL},
+        
        {NULL, -1, 0, NULL, NULL}
 };