Subject: | infinite ping() loop under connect_cached |
If the connection to the database uses 'connect_cached', then we get an
infinite loop at reconnection time : reconnect tries to clone, clone
calls connect_cached, connect_cached wants to ping, ping tries to
reconnect, ... etc.
In my tests I hacked around this by adding a flag $data->{is_cloning}
in the clone() method; then, in the ping() method, we just return 0 if
that flag is on.
It's a bit dirty ... maybe you have a better idea !