> Don't forget to have each connection set a timeout.... This makes SQLite > automatically retry (using monotonic backoff) if the database is locked.
I had that set to 10 seconds using sqlite3_busy_timeout(db, 10000). That doesn't work in shared cache mode--in that mode, you immediately get an SQLITE_LOCKED error regardless of the timeout setting.