Skip to content

v1.6.6

Choose a tag to compare

@simulieren simulieren released this 07 Mar 06:06
· 106 commits to main since this release

Bug Fixes

  • Fix server freeze under sustained load with dashboard enabled — Knex's default connection pool (min: 2, max: 10) creates multiple better-sqlite3 connections. Under load, concurrent writes from these connections cause SQLITE_BUSY deadlocks that freeze the event loop. Fixed by using a single-connection pool (min: 1, max: 1) which serializes all SQLite access. Also added busy_timeout=5000 as a safety net and moved PRAGMAs to pool.afterCreate so every connection gets them consistently.