On 26 Jul 2014, at 12:42am, Mayank Kumar (mayankum) <mayan...@cisco.com> wrote:

> I think you mean  this "sqlite3_busy_timeout(db, 2000);"

That will do fine.

> I am already using this api with busy time of 2sec , but some of my codepaths 
> didn't exit the process without closing the db. So I guess I am still going 
> to fix that first.
> I don't want to increase this more than 2 sec, since there is a single 
> connection, if the db is locked its some other problem that needs to be found 
> and fix.

If you are able to respond to crashes yourself, setting a short timeout is a 
great way to find faults in your program.  Good.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to