To answer your second question, I'm using apr_dbd_open and apr_dbd_close as well as calling apr_dbd_int only once in the post config hook.
On Tue, Feb 5, 2013 at 11:20 AM, Nick Kew <n...@apache.org> wrote: > > On 5 Feb 2013, at 16:51, Reyad Attiyat wrote: > > > Hello modules-dev, > > Was not sure if I should post in this mailing list or apr but I > > have trouble using apr-util and the mysql dbd driver. In my apache > module i > > make several mysql connections using the apr dbd functions. I make one > > connection in the postconfig hook where I perform a directory > > syncronization with file metadata to the database. This is done in a > thread > > and works fine. Next I connect in the child init hook. This is where > > apr_dbd_mysql blocks on a pthread lock. > > What particular call blocks? > I take it you're using matching apr_dbd_open and apr_dbd_close > calls in all these (startup-time) functions? > > -- > Nick Kew >