SQLite Forum

WAL journal and threading mode
Login
> How do I setup sqlite to call the SQLite standard busy handler in these conditions?

 > I found that if I do not register my own sqlite_busy_handler callback then all WRITE operations will fail immediately with the server busy error...

See PRAGMA busy_timeout <https://sqlite.org/pragma.html#pragma_busy_timeout>  
or  
sqlite3_busy_timeout() <https://sqlite.org/c3ref/busy_timeout.html>