Hi.

I use tomcat tribes to develop my application resently, and I find
this line in the source code of the class,
org.apache.catalina.tribes.membership.McastServiceImpl, at line 202 (I
use apache-tomcat-6.0.20 source code):

socket.setLoopbackMode(true);//hint that we don't need loop back messages

I think it is better to setLoopbackMode through a construtor's
argument or a property.

Because I really need debug my program on my single development PC
sometimes, or need to run two process of my application to get higher
availability.

BTW, I think sun's naming way is ugly, about socket.setLoopbackMode at
least. When I see this line, I really think it is to enable socket's
LoopbackMode if no the following comment, but actually the name of the
parameter needed by setLoopbackMode is "disable".


thanks.

-- 
Jeff Yang

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to