Client connetion problem after long delay

Eric Chan <[email protected]>
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
Hi all,

I have configured the Streamline Highly Availability and Load Balancing with 2 
server (Server A and Server B). The ldirectord.cf is configured to monitor and 
assigned weighting at port 8000 for both server

Ultramonkey is started up at server A only
A tcp application listening at port 8000 is started up at server B 

ipvsadm show that the virtual ip will route traffic to server B  8000 port. 

I have a tcp client written and pump traffic to the virtual ip at port 8000. 
All is well when the pumping speed is high. However, when i try to introduce a 
long delay between each pump, say for example, 10 second, the client throw 
connection exception 

java.net.SocketException: Connection reset
        at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
        at java.io.DataOutputStream.write(DataOutputStream.java:85)
        at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java:360)
        at java.io.DataOutputStream.writeUTF(DataOutputStream.java:300)
        at com.primecreation.mms.TCPSender.send(TCPSender.java:124)
        at com.primecreation.mms.TCPSender.main(TCPSender.java:196)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)


I am using the same connection between each pump and doesn't close the 
connection.

Noted that I have used the same client to make test on the real ip and doesn't 
have this problem and this problem occur only when there is a long delay 
between each pump for the virtual ip. 

netstat -na|grep 8000 at server B  show that there is a ESTABLISHED connection 
from the client machine to the vitual ip and this ESTABLISHED connection 
doesn't vanish for a long time even the client connection has broken. 

The behaviour the completely different if I start up the application at server 
A instead. The client can send packet to server A through the virutal IP 
between each long delay pump. 

Any suggestion? Thx a lot


Eric










-- 
Ultra Monkey - http://www.ultramonkey.org/
To UNSUBSCRIBE, email to [email protected], with a body:
unsubscribe ultramonkey-users [email protected]
where "[email protected]" is YOUR email address.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.