@inqueue = (); # the main input queue, an array of hashes
$systime = 0; # the time now (in seconds)
-$version = "1.41"; # the version no of the software
+$version = "1.42"; # the version no of the software
$starttime = 0; # the starting time of the cluster
$lockfn = "cluster.lock"; # lock file name
@outstanding_connects = (); # list of outstanding connects
if (!defined $msg || (defined $err && $err)) {
if ($dxchan) {
+ if (defined $err) {
+ $conn->disconnect;
+ undef $conn;
+ $dxchan->conn(undef);
+ }
$dxchan->disconnect;
} elsif ($conn) {
$conn->disconnect;
#open(DB::OUT, "|tee /tmp/aa");
+$SIG{PIPE} = sub {
+ #$DB::single = 1;
+ dbg('err', "Broken PIPE signal received");
+};
+
for (;;) {
my $timenow;
# $DB::trace = 1;