LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: ldirectord stopped suddenly

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: ldirectord stopped suddenly
From: "Leon Keijser" <errtu@xxxxxxx>
Date: Mon, 5 Dec 2005 13:49:22 +0100 (MET)
> Are you running an old version of ldirectord? Can you grab the version 
> string by running "ldirectord -v"?

On the testboxes i'm running the latest and greatest version of ldirectord
1.128 , with the patch from Horms a couple of days ago (see bottom of this
mail).


Léon

Index: ldirectord
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/ldirectord/ldirectord,v
retrieving revision 1.128
diff -u -r1.128 ldirectord
--- ldirectord  1 Dec 2005 00:40:09 -0000       1.128
+++ ldirectord  2 Dec 2005 08:07:59 -0000
@@ -2033,14 +2033,15 @@
 
        eval {
                local $SIG{'__DIE__'} = "DEFAULT";
-               local $SIG{'ALRM'} = sub { die "Timeout Alarm" };
+               local $SIG{'ALRM'} = sub { die "Timeout" };
                &ld_debug(4, "Timeout is $$v{checktimeout}");
                alarm $$v{checktimeout};
                my $sock = &ld_open_socket($$r{server}, $port, $$v{protocol});
                if ($sock) {
                        close($sock);
                } else {
-                       die(); #socket attempt failed immediately (not timeout)
+                       #socket attempt failed immediately (not timeout)
+                       die("Failed to Open Socket"); 
                }
                &ld_debug(3, "Connected to $1 (port $port)");
                alarm 0; # Cancel the alarm


-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++

<Prev in Thread] Current Thread [Next in Thread>