LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

re: Re: About tspsp

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: re: Re: About tspsp
From: lidsa@xxxxxxxxxxxxx
Date: Wed, 24 Apr 2002 14:36:26 +0800
Wensong:
     Thank for you letter!
     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.

     Best regards,
               Lidsa



                                                                                
                      
                    Wensong Zhang                                               
                      
                    <wensong@xxxxxxxxxxxx>              收件人:     
lvs-users@xxxxxxxxxxxxxxxxxxxxxx 
                    发件人:                            抄送:                         
               
                    lvs-users-admin@LinuxVirtual        主题:  Re: About tspsp    
                   
                    Server.org                                                  
                      
                                                                                
                      
                                                                                
                      
                    02-04-23 22:39                                              
                      
                    请答复 给 lvs-users                                             
                  
                                                                                
                      
                                                                                
                      





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


_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


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