Revision: 41717
http://brlcad.svn.sourceforge.net/brlcad/?rev=41717&view=rev
Author: davidloman
Date: 2010-12-20 13:42:06 +0000 (Mon, 20 Dec 2010)
Log Message:
-----------
Since pkg moves data off the Socket's recv buffer during a 'send' action
without calling the callback method, add in a call and check in Portal::send().
This seems to clear up some of the 'hangup' we are experiencing.
Modified Paths:
--------------
rt^3/trunk/src/libNet/Portal.cxx
Modified: rt^3/trunk/src/libNet/Portal.cxx
===================================================================
--- rt^3/trunk/src/libNet/Portal.cxx 2010-12-20 13:31:28 UTC (rev 41716)
+++ rt^3/trunk/src/libNet/Portal.cxx 2010-12-20 13:42:06 UTC (rev 41717)
@@ -60,6 +60,15 @@
int retval = this->pkgClient->send(PKG_MAGIC2, ba->data(), ba->size());
delete ba;
+
+ /* Process any data moved by the underlying Socket buffer copy. */
+ retval = this->pkgClient->processData();
+ if (retval < 0) {
+ this->log->logERROR("Portal",
+ "Unable to process packets? Weird. (1) ");
+ return retval;
+ }/* TODO do we need to check for ==0 ? */
+
return retval;
}
int
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