Is it possible that you are doing a "die()" anywhere in your script? I
think (IIRC) that this would bypass the teardown method.
If anyone else can remember better than I can, please correct my premise.
Brian
[EMAIL PROTECTED] on 03/31/2002 03:19:46 PM
To: [EMAIL PROTECTED]
cc:
bcc:
Subject: [cgiapp] errors and irreproducible bugs
While looking through my server logs for the reason behind sporadic
failures of my script, I found this line:
Issuing rollback() for database handle being DESTROY'd without explicit
disconnect()
In my 'teardown' method, I'm disconnecting like so:
sub teardown {
my $self = shift;
$self->param('dbh')->disconnect();
}
So I'm not sure why I'm getting that error message. The message occurs
even the script works properly.
BTW, the other error, which seems to occur once in 20 times is:
Premature end of script headers:
Any ideas why this is happening? Any ideas how I can get more
information about this?
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]