Revision: 40761
http://brlcad.svn.sourceforge.net/brlcad/?rev=40761&view=rev
Author: davidloman
Date: 2010-09-28 19:00:25 +0000 (Tue, 28 Sep 2010)
Log Message:
-----------
Made the PortalManager remove the FD mapping when a connection drops. Comment
out some log points.
Modified Paths:
--------------
rt^3/trunk/src/libNet/PortalManager.cxx
Modified: rt^3/trunk/src/libNet/PortalManager.cxx
===================================================================
--- rt^3/trunk/src/libNet/PortalManager.cxx 2010-09-28 18:59:37 UTC (rev
40760)
+++ rt^3/trunk/src/libNet/PortalManager.cxx 2010-09-28 19:00:25 UTC (rev
40761)
@@ -231,7 +231,7 @@
int readResult = p->read();
if (readResult == 0) {
- this->closeFD(i, "Lost connection.");
+ this->closeFD(i, "");
continue;
} else if (readResult < 0) {
this->closeFD(i, "Error on read,
dropping connection.");
@@ -301,7 +301,13 @@
}
this->masterFDSLock.unlock();
- this->log->logERROR("PortalManager", logComment);
+ this->portalsLock->lock();
+ this->fdPortalMap->remove(fd);
+ this->portalsLock->unlock();
+
+ if (logComment.length() >0) {
+ this->log->logERROR("PortalManager", logComment);
+ }
}
// 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