Revision: 41623
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41623&view=rev
Author:   davidloman
Date:     2010-12-15 18:00:28 +0000 (Wed, 15 Dec 2010)

Log Message:
-----------
Change NetMsgRouter over to logging an unroutable msg (for now) rather than 
replying with a FailureMsg.  If both sides fail to route the FailureMsg, the 
two sides will continually send FailureMsg's to each other.  Funny, but not 
what we want.

Modified Paths:
--------------
    rt^3/trunk/src/libNet/NetMsgRouter.cxx

Modified: rt^3/trunk/src/libNet/NetMsgRouter.cxx
===================================================================
--- rt^3/trunk/src/libNet/NetMsgRouter.cxx      2010-12-15 17:47:44 UTC (rev 
41622)
+++ rt^3/trunk/src/libNet/NetMsgRouter.cxx      2010-12-15 18:00:28 UTC (rev 
41623)
@@ -26,7 +26,7 @@
 #include "NetMsgRouter.h"
 #include <QtCore/QMutexLocker>
 #include "Portal.h"
-#include "TypeOnlyMsg.h"
+#include "FailureMsg.h"
 
 NetMsgRouter* NetMsgRouter::pInstance = NULL;
 
@@ -72,8 +72,13 @@
 
        if (list->length() == 0) {
                /* If no routing table, send back an error */
-               TypeOnlyMsg* tom = new TypeOnlyMsg(UNHANDLED_MSG_TYPE);
-               origin->send(tom);
+/*             FailureMsg failMsg(UNHANDLED_MSG_TYPE);*/
+/*             origin->send(&failMsg);*/
+               s.clear();
+               s.append("Msg type: ");
+               s.append(QString::number(msg->getMsgType(),16).toUpper());
+               s.append(" has no routing information.");
+               Logger::getInstance()->logWARNING("NetMsgRouter",s);
                return false;
 
        } else {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to