[mnet-devel] BandwidthThrottler patch

Zooko zooko at zooko.com
Mon Feb 3 19:59:04 GMT 2003


> I don't think it works with the current DoQ.  Thus my question.
> 
> any suggestions on how to fix it?

I don't understand what is broken.  The pyutil_new DoQ hasn't changed from the 
old mnet/ DoQ with regard to how "add_task" is invoked.

Is it that there isn't a DoQ instance present under the name "DoQ.doq" when this 
code first gets run?

--Z

> > > --- BandwidthThrottler.py	2 Dec 2002 19:58:44 -0000	1.4
> > > +++ BandwidthThrottler.py	2 Feb 2003 19:31:35 -0000	1.5
> > > @@ -34,6 +33,11 @@
> > >          self._lasttick = time()
> > >          self._throttlecbs = []
> > >          self._unthrottlecbs = []
> > > +        self._tick_doq_loop()
> > > +
> > > +    def _tick_doq_loop(self):
> > > +        DoQ.doq._asyncorelooper.add_task(self.used, args=(0,))
> > > +        DoQ.doq.add_task(self._tick_doq_loop, delay=60)
> > >  
> > > 


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
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