Subject: | memory leak on transaction |
Date: | Thu, 2 Jan 2014 23:08:36 +0100 |
To: | bug-Net--RabbitMQ [...] rt.cpan.org |
From: | Dominik Mostowiec <dominikmostowiec [...] gmail.com> |
Hi,
If i add tx_select and tx_commit memory application grows in memory
eg:
if (!defined ($mq)) {
$mq = Net::RabbitMQ->new();
$mq->connect($HOST, {user => $USER, password => $PASS});
$mq->channel_open($channel);
}
$mq->tx_select($channel);
my $ret = $mq->publish($channel, $rkey, $data, {exchange =>
$exchange}, {delivery_mode => 2});
if ($ret != 0) {
die "publish error ($ret)";
}
$mq->tx_commit($channel);
After remove tx_select and tx_commit app working ok.
--
Regards
Dominik