LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Ldirectord Redhat EL3 SSL checking problem

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Ldirectord Redhat EL3 SSL checking problem
From: Horms <horms@xxxxxxxxxxxx>
Date: Fri, 5 Nov 2004 18:26:49 +0900
On Fri, Nov 05, 2004 at 06:10:03PM +0900, Horms wrote:
> On Wed, Oct 27, 2004 at 05:37:36PM +0100, Philip Hayward wrote:
> > Sorry, error in my report. The RH8 servers are running ldirectord1.90 and
> > 1.90 runs correctly on EL3. I guess the problem lies in the changes in 1.91.
> > If I can help in debugging please mail me.
> 
> Thanks, I will look into it.

Regretfully I am unable to reproduce this problem using 1.92
(which is the same as 1.91 except for a minor patch relating
UDP port numbers).

The patch below provides some additional debuging information
when running ldirectord -d which may be useful. It also
removes a spurious call to alarm();

-- 
Horms

Index: ldirectord
===================================================================
RCS file: /home/cvs/linux-ha/linux-ha/ldirectord/ldirectord,v
retrieving revision 1.92
diff -u -r1.92 ldirectord
--- ldirectord  10 Sep 2004 04:17:44 -0000      1.92
+++ ldirectord  5 Nov 2004 09:25:13 -0000
@@ -1817,9 +1817,10 @@
                my $recstr = $$r{receive};
                if($result =~ /error/i ||
                                ($recstr =~ /.+/ && !($body =~ /$recstr/))) {
-                       alarm(0);
+                       &ld_debug(2, "Expected String Not Present");
                        die("$result");
                }
+               &ld_debug(2, "Expected String Present");
        };
 
        if ($@) {
@@ -1859,7 +1860,7 @@
                return 1;
        }
 
-       &ld_debug(2, "Status: $status");
+       &ld_debug(2, "Status: $status (" . (($status==0)?"ok":"fail") . ")");
        if ($status ne 0) {
                service_set($v, $r, "down");
                return 0;
<Prev in Thread] Current Thread [Next in Thread>