Re: hello

godperl7 <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <CALier5ffa0QPbLiP05bXz3S=0072iqEjWVxqL+bTBwCX-81S4g@mail.gmail.com>
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 <[email protected]>

> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.