[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3274] trunk
- Subject: SF.net SVN: ledger-smb:[3274] trunk
- From: ..hidden..
- Date: Fri, 17 Jun 2011 21:33:11 +0000
Revision: 3274
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3274&view=rev
Author: ehuelsmann
Date: 2011-06-17 21:33:10 +0000 (Fri, 17 Jun 2011)
Log Message:
-----------
Explicitly disconnect(), to prevent flooding error logs.
Modified Paths:
--------------
trunk/lsmb-request.pl
trunk/old-handler.pl
Modified: trunk/lsmb-request.pl
===================================================================
--- trunk/lsmb-request.pl 2011-06-17 11:19:18 UTC (rev 3273)
+++ trunk/lsmb-request.pl 2011-06-17 21:33:10 UTC (rev 3274)
@@ -61,8 +61,12 @@
&call_script( $script, $request );
+# Prevent flooding the error logs with undestroyed connection warnings
+$request->{dbh}->disconnect()
+ if defined $request->{dbh};
$logger->debug("End lsmb-request.pl");
+
sub call_script {
my $script = shift @_;
Modified: trunk/old-handler.pl
===================================================================
--- trunk/old-handler.pl 2011-06-17 11:19:18 UTC (rev 3273)
+++ trunk/old-handler.pl 2011-06-17 21:33:10 UTC (rev 3274)
@@ -156,6 +156,9 @@
1;
+$form->{dbh}->disconnect()
+ if defined $form->{dbh};
+
# end
sub check_password {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.