ConnectionPool_getConnection no response

Issue #10 closed
shd shd created an issue

os: ubuntu 14.04 x32 mysql: 5.5.43-0ubuntu0.14.04.1

when stop mysqld(not kill),ConnectionPool_getConnection no response, no error. then continue mysqld, ConnectionPool_getConnection ok.

how resolve?

tks!

Comments (4)

  1. Tildeslash repo owner

    This is actually the expected behaviour. If you try this and run with debug enabled ZBDEBUG = true; you will see something like this in the console, Failed to create connection -- Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2). The method itself just returns a NULL Connection object which indicate that something might be wrong and that a retry might work later. I'm unsure if an exception should be thrown in this case, though I can see how it might be the expected behaviour.

  2. Log in to comment