Skip Menu |

This queue is for tickets about the DBIx-RetryOverDisconnects CPAN distribution.

Report information
The Basics
Id: 83139
Status: resolved
Priority: 0/
Queue: DBIx-RetryOverDisconnects

People
Owner: Nobody in particular
Requestors: DAMI [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.08
Fixed in: (no value)



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 !