Revision: 40826
http://brlcad.svn.sourceforge.net/brlcad/?rev=40826&view=rev
Author: davidloman
Date: 2010-09-29 15:09:54 +0000 (Wed, 29 Sep 2010)
Log Message:
-----------
Implement SessionManager's ability to handle a DISCONNECTREQ msg. Not sure if
its the SM we want making the Portal disconnect....
Modified Paths:
--------------
rt^3/trunk/src/GS/SessionManager.cxx
Modified: rt^3/trunk/src/GS/SessionManager.cxx
===================================================================
--- rt^3/trunk/src/GS/SessionManager.cxx 2010-09-29 15:00:48 UTC (rev
40825)
+++ rt^3/trunk/src/GS/SessionManager.cxx 2010-09-29 15:09:54 UTC (rev
40826)
@@ -151,7 +151,7 @@
//validate incoming data
if (origin == 0) {
//TODO Figure out how to how to handle NULL Portal
- log->logERROR("SessionManager", "NULL Portal!");
+ log->logERROR("SessionManager", "handleNewSessionReMsg(): NULL
Portal!");
return;
}
@@ -184,7 +184,23 @@
void
SessionManager::handleDisconnectReqMsg(TypeOnlyMsg* msg)
{
+ Portal* origin = msg->getOrigin();
+ //validate incoming data
+ if (origin == 0) {
+ //TODO Figure out how to how to handle NULL Portal
+ log->logERROR("SessionManager", "handleDisconnectReqMsg(): NULL
Portal!");
+ return;
+ }
+
+ Session* s = this->getSession(origin);
+
+ if (s == NULL) {
+ //no mapping. Odd. Kick 'em.
+ origin->disconnect();
+ }
+
+ this->remCache(s);
}
// Local Variables: ***
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits