hello Michael Ludwig thanks for your anwser. according to what you said. if the database handler was interrupted by accident before the implement of the script, To Dancer:Plugin:Database the only need to do is to obtain a new connection. And reperformance the script from the place where the last database connection handler was interrupted. Do i understand right? Because i have no real programming experience and database maintenance experience, i find it hard to understant these.
according to what you said,if the runtime 2012/7/21 Michael Ludwig <mil...@gmx.de> > godperl7 schrieb am 21.07.2012 um 13:30 (+0800): > > Dancer:Plugin:Database takes care of ensuring that the database handle > > is still connected and valid. > > If the handle was last asked for more than connection_check_threshold > > seconds ago, it will check that the connection is still alive. > > If the connection has gone away,Dancer:Plugin:Database will use some > > methods to create and obtain a new connection. > > But i can't understant how the new connection get the information of > > the last disconnection and maintain the last disconnection's sessions > > It does neither. The connection is lost, and the session is lost with > it. That's usually not a big deal, just reconnect. > > I could imagine a database server or middleware that keeps the session > persistent but I've never seen any, probably for a reason: there would > be lots of complications. > > Michael >