Hi, > Can someone please explain why it's longer to get the error if AUTO_RECONNECT is set to true?
Well, I guess it is trying to reconnect. But why it should take so long to find out it can't, this I don't know. Could you get a few full thread dumps to find out what is happening during those 18 seconds? Or could you provide a simple test case? Regards, Thomas On Sunday, January 26, 2014, Pandu Purnama <[email protected]> wrote: > Hello, > I'm using H2 JdbcConnectionPool. > > I'm trying to handle condition where db server is temporarily down. > This is doable, but it takes about 18 seconds before error message is > returned. > If I don't use AUTO_RECONNECT setting, then the error is immediately > returned. > > Can someone please explain why it's longer to get the error > if AUTO_RECONNECT is set to true? > Is there a param to set timeout? > I've tried using pool.setLoginTimeout(5) but it doesn't work. > > Thanks!. > > -- > You received this message because you are subscribed to the Google Groups > "H2 Database" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:_e({}, > 'cvml', 'h2-database%[email protected]');>. > To post to this group, send email to > [email protected]<javascript:_e({}, 'cvml', > '[email protected]');> > . > Visit this group at http://groups.google.com/group/h2-database. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/groups/opt_out.
