[mnet-devel] BandwidthThrottler patch
icepick at icepick.info
icepick at icepick.info
Tue Feb 4 13:42:19 GMT 2003
On Mon, Feb 03, 2003 at 02:59:04PM -0500, Zooko wrote:
>
> > 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?
It's this line right here:
DoQ.doq._asyncorelooper.add_task(self.used, args=(0,))
DoQ.doq does not have an attrib called '_asyncorelooper'. How does it need
to be changed.
icepick
>
> --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.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
>
--
You're just jealous because the voices only talk to me.
-------------------------------------------------------
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