LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: About tspsp

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: About tspsp
From: Wensong Zhang <wensong@xxxxxxxxxxxx>
Date: Tue, 23 Apr 2002 22:39:09 +0800 (CST)
Hi,

On Tue, 23 Apr 2002 lidsa@xxxxxxxxxxxxx wrote:

>      I sent a message to you yesterday because I could not make tcpsp work
> in my cluster.

Sorry for the delay.

> Now I have resolved it by fixing forwarder.c .I found the forwarder can't
> accept requests
> from client,and told me "Accept: Invalid argument" .I deleted the function
> of setsockopt,then
> it did tcpsplicing successfully.

Is it the setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &flag, 
sizeof(flag))?

Sorry that I forgot initializing the variable flag. Please assign the flag 
with one, and compile it again, then see if the same thing happens.

--- forwarder.c.orig    Thu Apr 18 22:35:01 2002
+++ forwarder.c Tue Apr 23 20:16:11 2002
@@ -76,6 +76,7 @@
        listenaddr.sin_addr.s_addr = htonl(INADDR_ANY);
        listenaddr.sin_port = htons (8888);
 
+       flag = 1;
        setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR, &flag, sizeof(flag));
 
        if (bind(listenfd, (struct sockaddr *)&listenaddr,


Regards,

Wensong



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