[Sumover-dev] [svn commit] r4136 - common/trunk/src

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Apr 3 19:29:46 BST 2008


Author: piers
Date: Thu Apr  3 19:29:46 2008
New Revision: 4136

Modified:
   common/trunk/src/mbus.c

Log:
Fixed timeout calculation in rendezvous functions.

Modified: common/trunk/src/mbus.c
==============================================================================
--- common/trunk/src/mbus.c	(original)
+++ common/trunk/src/mbus.c	Thu Apr  3 19:29:46 2008
@@ -1063,7 +1063,7 @@
 		mbus_retransmit(m);
                 /* limit waiting period to 20 secs - longer than that its an error */
                 if (rendezvous_timeout_usec) {
-                   if (waiting_limitcount++ > 200) {
+                   if (!waiting_limitcount--) {
                     debug_msg("mbus_rendezvous_waiting waited:%d interations\n",waiting_limitcount);
                     break;
                    }
@@ -1110,7 +1110,7 @@
 		mbus_retransmit(m);
                 /* limit waiting period to 20 secs - longer than that it's an error */
                 if (rendezvous_timeout_usec) {
-                    if (waiting_limitcount++ > 200) {
+                    if (!waiting_limitcount--) {
                             debug_msg("mbus_rendezvous_go waited:%d interations\n",waiting_limitcount);
                             return NULL;
                     }



More information about the Sumover-dev mailing list