]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
add and use automatic re-init on connection failure
authorAlan T. DeKok <aland@freeradius.org>
Sat, 12 Jul 2025 12:52:49 +0000 (08:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 13 Jul 2025 18:05:21 +0000 (14:05 -0400)
commitc141294c8e13171f99a8b8c510f2df68d0b03b8c
treeda9fb54f869b6945932ea68cbf9b352e316470d1
parent804e9d2413c65edb68e0511311bf048b6fe186b4
add and use automatic re-init on connection failure

Some SQL modules use a thread-specific connection hamdle for
escaping. However, that connection may fail for some reason.
When that happens, the connection should be reopened.

Otherwise, the connection will go down, and will never come back
up again.
src/lib/server/connection.c
src/lib/server/connection.h
src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c
src/modules/rlm_sql/drivers/rlm_sql_postgresql/rlm_sql_postgresql.c