> > > For this purpose, "connected" and "pingable" are the same thing. > > > > Yes and no. If you can't ping the server, but the TCP socket is > > still open, that means you essentially have this TCP connection to the > > server that's not being used, in an open state, for the rest of the lifetime > > of your apache server instance. This could be a Bad Thing, say, if it's in > > mid-transaction, keeping a table lock open...
> Sorry, but this sounds like total conjecture to me. You have to expect > certain basic things to work, and one of them is that a connection which > can't be ping'ed is not holding a table lock. If it is, this is a much > lower-level bug than DBI should try to deal with. I'll add one more thing - for some drivers a call to $dbh->ping() will generate a *new* connection *if* the driver thinks that the $dbh is currently active (ie has an active $sth) - DBD::Sybase in particular, but I suspect that other drivers that don't support multiple active statements on a single physical connection will have the same behavior. Michael This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie.