TCP/TCPPING creates too many unnecessary connections
----------------------------------------------------

         Key: JGRP-26
         URL: http://jira.jboss.com/jira/browse/JGRP-26
     Project: JGroups
        Type: Bug
    Versions: 2.2.8    
 Environment: Java 1.4.2
    Reporter: B.S.Navin
 Assigned to: Bela Ban 


A simple program using JGroups with a TCP/TCPPING/FD combo at the bottom of the 
stack, creates too many unnecessary connections.

The program just creates a channel and registers a message listener that just 
printss the message.

When this program is run, it creates 2 TCP connections - One to the port of the 
TCP protocol of this program & the other from the prot of the TCP protocol of 
this program.

These 2 connections seem to be created when a ping message is sent to the hosts 
in the initial_hosts list of the TCPPING protocol. The target address should be 
checked and the message should automatically be processed within the same stack 
without sending it on the network, if the dest. address is same as this.

Also, the FD protocol sends a message to its peer and receives a response. This 
causes 2 more connections to be created. Whereas the same connection could have 
been used to send the response message.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.jboss.com/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
JBoss-Development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to