From 35146e50190c3510ad891342b0ac158ddbd21a97 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 5 Dec 2019 04:32:15 -0500 Subject: Set busy timeout --- database.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/database.h b/database.h index ef62dde..5b46757 100644 --- a/database.h +++ b/database.h @@ -56,6 +56,8 @@ static inline sqlite3 *dbOpen(char *path, int flags) { } if (error) errx(EX_NOINPUT, "%s: %s", path, sqlite3_errmsg(db)); + sqlite3_busy_timeout(db, 1000); + error = sqlite3_exec(db, "PRAGMA foreign_keys = true;", NULL, NULL, NULL); if (error) errx(EX_SOFTWARE, "sqlite3_exec: %s", sqlite3_errmsg(db)); -- cgit 1.4.1 is.form.submit();'> IRC bouncer
summary refs log tree commit diff
path: root/client.c (unfollow)
Commit message (Collapse)Author
2019-10-26Disconnect client on unknown commandJune McEnroe
During registration, no other commands should be sent. Afterwards, only intercepted commands will get parsed.
2019-10-26Allow reading sensitive information from filesJune McEnroe
2019-10-26Add rc scriptJune McEnroe
2019-10-25Add install and uninstall targetsJune McEnroe
2019-10-25Expand documentationJune McEnroe
2019-10-25Add AGPLv3 notice on client registrationJune McEnroe
OwO
2019-10-25Rename project pounceJune McEnroe