LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Ldirectord and DNS problem using TCP and UDP

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Ldirectord and DNS problem using TCP and UDP
From: Horms <horms@xxxxxxxxxxxx>
Date: Thu, 20 Oct 2005 12:49:49 +0900
On Wed, Oct 19, 2005 at 01:28:40PM -0700, Todd Lyons wrote:
> Horms wanted us to know:
> 
> >> The following allows it to do a udp check for the udp protocol and a tcp
> >> check for the tcp protocol (for the check dns sub only).  I'm not sure
> >> if you need to modify the regex to be more specific.
> >Can I clarify that if its a tcp check $res->usevc(1) shuold
> >be called, and other wise it wouldn't. If so I'd propose something like.
> 
> Yes, exactly.
> 
> >             if ($$v{"protocol"} eq "tcp") {
> >                     $res->usevc(1);
> >             }
> >Can you let me know if that works, it would be good to get this fixed,
> >sounds like its been there forever.
> 
> It works for me.  I didn't notice that you did "eq" checks for protocol
> in other places in your code or I would have modeled my suggestion the
> same way.  Thank you for looking at it.

No problem at all. For the record, by the time ldirectord has read its
configuration, $$v{"protocol"} will always be "tcp", "udp" or "fwm".
The latter is tricky, but the existing udp-check should suffice.

-- 
Horms

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