mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
File to test MemoryLeak in perl DBI modules.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@43 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
a8ea16dd94
commit
de05a4ffff
14
pandora_server/bin/pandora_DBI_test.pl
Normal file
14
pandora_server/bin/pandora_DBI_test.pl
Normal file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/perl
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use DBI; # DB interface with MySQL
|
||||
|
||||
while (1){
|
||||
keep_alive_check();
|
||||
}
|
||||
|
||||
sub keep_alive_check {
|
||||
my $dbh = DBI->connect("DBI:mysql:pandora:localhost:3306","pandora","pandora",{ RaiseError => 1, AutoCommit => 1 });
|
||||
$dbh->disconnect;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user