LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

re: Re: About tspsp

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: re: Re: About tspsp
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Wed, 24 Apr 2002 19:46:00 +0800 (CST)

Hello,

On Wed, 24 Apr 2002 lidsa@xxxxxxxxxxxxx wrote:

>      The example can work if I delete the code "setsockopt(listenfd,
> SOL_SOCKET, SO_REUSEADDR, &flag,sizeof(flag))".I initialized the variable
> flag follow your message
> and recomplied again.But it can not work  still.
>        I debug fowarder with gdb ,I found that error came out when
> "accept",The errorno is 3.
> 

I forgot initializing the other variable cliaddrlen in this simple 
example, sorry.

Please apply the attached diff to forwarder.c, 
        cd <directory>/tcpsp/example
        patch -p0 < <your-directory>/example.diff

compile it again, then it should work.

Thanks,

Wensong

Attachment: example.diff
Description: Text document

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