[mnet-devel] Re: [mnet-cvs]a "re-hello" patch; it"s up to Arno, of course, whether to...

Arno Waschk hamamatsu at gmx.de
Fri Mar 12 12:04:23 GMT 2004


...but that might behave strangely for the no reachable MT situation, no?

On Fri, 12 Mar 2004 03:36:54 -0800, Zooko O'Whielacronx 
<zooko at users.sourceforge.net> wrote:

> Update of /cvsroot/mnet/mnet/common
> In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23012/common
>
> Modified Files:
> 	BrokerVersion.py MojoTransaction.py
> Log Message:
>  * a "re-hello" patch; it's up to Arno, of course, whether to keep this 
> in v0.6.3 and whether to port it to v0.6.2; vernum bump -> Mnet 
> v0.6.3.373-UNSTABLE
>
> Index: BrokerVersion.py
> ===================================================================
> RCS file: /cvsroot/mnet/mnet/common/BrokerVersion.py,v
> retrieving revision 1.445
> retrieving revision 1.446
> diff -u -d -r1.445 -r1.446
> --- BrokerVersion.py	11 Mar 2004 14:45:00 -0000	1.445
> +++ BrokerVersion.py	12 Mar 2004 11:36:51 -0000	1.446
> @@ -24,7 +24,7 @@
>  major = 0 # this will go to `1' when it is ready for widespread public 
> use !?
>  minor = 6 # release number
>  micro = 3 # bugfix release number
> -nano = 372 # everytime a developer changes anything that anyone might 
> care about, he bumps this one
> +nano = 373 # everytime a developer changes anything that anyone might 
> care about, he bumps this one
>  flag = "UNSTABLE"
>
>  versiontup = (major, minor, micro, nano,)
>
> Index: MojoTransaction.py
> ===================================================================
> RCS file: /cvsroot/mnet/mnet/common/MojoTransaction.py,v
> retrieving revision 1.79
> retrieving revision 1.80
> diff -u -d -r1.79 -r1.80
> --- MojoTransaction.py	11 Mar 2004 14:45:00 -0000	1.79
> +++ MojoTransaction.py	12 Mar 2004 11:36:52 -0000	1.80
> @@ -489,8 +489,6 @@
>              debugprint("%s.__announce_self_to_meta_trackers(); I do not 
> know any MTs!  This is very bad.\n", args=(self,))
>              return
>
> -        self._lasthellotime = now
> -
>          fingers = idlib.chordish_fingers(self.get_id(), mts.keys())
>          hmtIds = fingers[:]
>          if len(hmtIds) < mojoutil.logish(len(mts)):
> @@ -502,8 +500,14 @@
>
>          debugprint("Set of all known MTs: %s, fingers: %s, set to 
> hello: %s\n", args=(mts.keys(), fingers, hmtIds,), vs="MetaTracker 
> selection", v=6)
>
> +        def outcomefunc(widget, outcome, failure_reason=None, 
> self=self):
> +            if failure_reason or (outcome.get('result') != "success"):
> +                self.send_hello_to_meta_trackers()
> +            else:
> +                self._lasthellotime = now
> +
>          for mtId in hmtIds:
> -            self.initiate(counterparty_id=mtId, 
> conversationtype='hello', firstmsgbody=hello_body)
> +            self.initiate(counterparty_id=mtId, 
> conversationtype='hello', firstmsgbody=hello_body, 
> outcome_func=outcomefunc, post_timeout_outcome_func=outcomefunc, )
>
>      def _hello_sequence_num_needs_increasing(self):
>          if not self.__need_sequence_update:
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> mnet-cvs mailing list
> mnet-cvs at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mnet-cvs
>



-- 
http://www.arnowaschk.de


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
mnet-devel mailing list
mnet-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mnet-devel




More information about the Mnet-devel mailing list