I am using below TCP config which is not working. i mean nodes are not able to find each other and and no leader is being elected, while if i changed from TCP to UDP (as given by Belaban in Github raft.xml) then its working fine.if jgroup-raft does nt work with TCP or am i missing something :
<config xmlns="urn:org:jgroups"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:org:jgroups
http://www.jgroups.org/schema/jgroups.xsd">
<TCP bind_port="${jgroups.tcp.bind_port:9091}"
 send_buf_size="128K"
 thread_pool.min_threads="2"
 thread_pool.max_threads="100"
 thread_pool.keep_alive_time="5000" />
<TCPPING async_discovery="true"
       initial_hosts="${jgroups.tcpping.initial_hosts:localhost[7800],localhost[7801],localhost[7801]}"
       return_entire_cache="${jgroups.tcpping.return_entire_cache:false}"
       port_range="${jgroups.tcp.port_range:2}"/>
  <MERGE3  min_interval="10000"
       max_interval="30000"/>
<FD_SOCK />
<FD_ALL3 />
<VERIFY_SUSPECT timeout="1500" />
<pbcast.NAKACK2 xmit_interval="500"
xmit_table_num_rows="100" xmit_table_msgs_per_row="2000"
xmit_table_max_compaction_time="30000" use_mcast_xmit="false"
discard_delivered_msgs="true" />
<UNICAST3 xmit_interval="500" xmit_table_num_rows="100"
xmit_table_msgs_per_row="2000" xmit_table_max_compaction_time="60000"
conn_expiry_timeout="0" />
<pbcast.STABLE desired_avg_gossip="50000" max_bytes="4M" />
<raft.NO_DUPES />
<pbcast.GMS print_local_addr="true" join_timeout="2000" />
<!--BATCH flush_interval="1" max_batch_size="50" / -->
<UFC max_credits="2M" min_threshold="0.4" />
<MFC max_credits="2M" min_threshold="0.4" />
<FRAG4 frag_size="60K" />
<raft.ELECTION />
<raft.RAFT members="${raft_members:A,B,C}"
raft_id="${raft_id}" log_dir="/rafttest/src/logdir" />
<raft.REDIRECT />
<raft.CLIENT bind_addr="0.0.0.0" />
</config>