pfft, i said it was hiding :-)  I'm not sure what triggered it, but
I'll watch out for it.

On 23/05/05, James Bunton <[EMAIL PROTECTED]> wrote:
> I can't reproduce that one either :P
> 
> How did you get it to happen?
> 
> ---
> 
> James
> 
> 
> On 23/05/2005, at 12:38 AM, Norman Rasmussen wrote:
> 
> > weeeeeeeeee, now i find this hiding:
> >
> > 05/22/05 - 16:34:44 - NotificationClient: "[EMAIL PROTECTED]"
> > contactStatusChanged("NLN", "[EMAIL PROTECTED]")
> > 05/22/05 - 16:34:44 - LegacyConnection: "[EMAIL PROTECTED]" -
> > contactStatusChanged("[EMAIL PROTECTED]")
> > 05/22/05 - 16:34:44 - Traceback (most recent call last):
> > 05/22/05 - 16:34:44 -   File
> > "/usr/src/cvs/msn-transport/PyMSNt/src/tlib/msn.py", line 1089, in
> > handle_UUX
> > 05/22/05 - 16:34:44 -     self._fireCallback(id)
> > 05/22/05 - 16:34:44 -   File
> > "/usr/src/cvs/msn-transport/PyMSNt/src/tlib/msn.py", line 601, in
> > _fireCallback
> > 05/22/05 - 16:34:44 -     self.ids[id][0].callback(args)
> > 05/22/05 - 16:34:44 -   File
> > "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line
> > 252, in callback
> > 05/22/05 - 16:34:44 -     self._startRunCallbacks(result)
> > 05/22/05 - 16:34:44 -   File
> > "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line
> > 313, in _startRunCallbacks
> > 05/22/05 - 16:34:44 -     self._runCallbacks()
> > 05/22/05 - 16:34:44 - --- <exception caught here> ---
> > 05/22/05 - 16:34:44 -   File
> > "/usr/lib/python2.3/site-packages/twisted/internet/defer.py", line
> > 338, in _runCallbacks
> > 05/22/05 - 16:34:44 -     self.result = callback(self.result, *args,
> > **kw)
> > 05/22/05 - 16:34:44 -   File
> > "/usr/src/cvs/msn-transport/PyMSNt/src/tlib/msn.py", line 1415, in _cb
> > 05/22/05 - 16:34:44 -     self.factory.status = r[0]
> > 05/22/05 - 16:34:44 - exceptions.IndexError: tuple index out of range
> >
> >
> > On 22/05/05, James Bunton <[EMAIL PROTECTED]> wrote:
> >> Can you run cvs update and see if I've fixed it please?
> >> Thanks.
> >>
> >> ---
> >>
> >> James
> >>
> >>
> >> On 22/05/2005, at 9:15 AM, Norman Rasmussen wrote:
> >>
> >>> I add someone, and give them auth (eg
> >>> [EMAIL PROTECTED]), and then I get auth from the
> >>> raw
> >>> address [EMAIL PROTECTED], instead of
> >>> [EMAIL PROTECTED]
> >>>
> >>> Eventually I do get the auth for the correct address though (how
> >>> weird)
> >>>
> >>> I also saw this error:
> >>>
> >>> 05/22/05 - 00:56:42 - Traceback (most recent call last):
> >>> 05/22/05 - 00:56:42 -   File
> >>> "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line
> >>> 526, in doSelect
> >>> 05/22/05 - 00:56:44 -     _logrun(selectable, _drdw, selectable,
> >>> method, dict)
> >>> 05/22/05 - 00:56:44 -   File
> >>> "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 65, in
> >>> callWithLogger
> >>> 05/22/05 - 00:56:44 -     callWithContext({"system": lp}, func,
> >>> *args,
> >>> **kw)
> >>> 05/22/05 - 00:56:44 -   File
> >>> "/usr/lib/python2.3/site-packages/twisted/python/log.py", line 52, in
> >>> callWithContext
> >>> 05/22/05 - 00:56:44 -     return context.call({ILogContext: newCtx},
> >>> func, *args, **kw)
> >>> 05/22/05 - 00:56:44 -   File
> >>> "/usr/lib/python2.3/site-packages/twisted/python/context.py", line
> >>> 43,
> >>> in callWithContext
> >>> 05/22/05 - 00:56:45 -     return func(*args,**kw)
> >>> 05/22/05 - 00:56:45 - --- <exception caught here> ---
> >>> 05/22/05 - 00:56:45 -   File
> >>> "/usr/lib/python2.3/site-packages/twisted/internet/default.py", line
> >>> 535, in _doReadOrWrite
> >>> 05/22/05 - 00:56:45 -     why = getattr(selectable, method)()
> >>> 05/22/05 - 00:56:45 -   File
> >>> "/usr/lib/python2.3/site-packages/twisted/internet/tcp.py", line 255,
> >>> in doRead
> >>> 05/22/05 - 00:56:45 -     return self.protocol.dataReceived(data)
> >>> 05/22/05 - 00:56:45 -   File
> >>> "/usr/lib/python2.3/site-packages/twisted/protocols/basic.py", line
> >>> 223, in dataReceived
> >>> 05/22/05 - 00:56:45 -     why = self.lineReceived(line)
> >>> 05/22/05 - 00:56:45 -   File
> >>> "/usr/src/cvs/msn-transport/PyMSNt/src/tlib/msn.py", line 665, in
> >>> lineReceived
> >>> 05/22/05 - 00:56:45 -     try: handler(params.split())
> >>> 05/22/05 - 00:56:45 -   File
> >>> "/usr/src/cvs/msn-transport/PyMSNt/src/tlib/msn.py", line 1028, in
> >>> handle_ADC
> >>> 05/22/05 - 00:56:46 -     self.userAddedMe(userGuid, userHandle,
> >>> screenName)
> >>> 05/22/05 - 00:56:46 -   File
> >>> "/usr/src/cvs/msn-transport/PyMSNt/src/legacy/msnw.py", line 535, in
> >>> userAddedMe
> >>> 05/22/05 - 00:56:46 -     debug.log("NotificationClient: \"%s\"
> >>> userAddedMe(\"%s\", \"%s\")" % (self.factory.userHandle, userHandle))
> >>> 05/22/05 - 00:56:46 - exceptions.TypeError: not enough arguments for
> >>> format string
> >>>
> >>> Not 110% sure they're related but it's a guess.
> >>>
> >>> --
> >>> - Norman Rasmussen
> >>>  - Email: [EMAIL PROTECTED]
> >>>  - Home page: http://norman.rasmussen.org/
> >>> _______________________________________________
> >>> py-transports mailing list
> >>> [email protected]
> >>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >>>
> >>
> >>
> >
> >
> > --
> > - Norman Rasmussen
> >  - Email: [EMAIL PROTECTED]
> >  - Home page: http://norman.rasmussen.org/
> > _______________________________________________
> > py-transports mailing list
> > [email protected]
> > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >
> 
> 


-- 
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.org/
From [EMAIL PROTECTED]  Sun May 22 22:59:37 2005
From: [EMAIL PROTECTED] (Norman Rasmussen)
Date: Sun May 22 22:59:41 2005
Subject: [py-transports] MSN transport
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

On 23/05/05, James Bunton <[EMAIL PROTECTED]> wrote:
> Yes. You have to be careful with your status message changing.
> Well, not really careful. But MSN does have a limit to how frequently
> you can change your status message, and then it will stop working.
> You actually start getting errors, but I'm not really sure how to pass
> these to Jabber, so I just silently ignore them in the hope that people
> won't notice :P
> You wouldn't be able to actually hit the limit unless you were using
> some automated process though.
yup, maybe just send a <service-unavailable/>. It seems to be a very
generic 'something-went-wrong' jabber message.

> The reason for the delay when you change status is that PyMSNt only
> sends you a presence when the MSN servers notify us of our own
> presence. So that's why you don't see it appear as available for a
> little while after you start logging in, and also why there's a few
> seconds of delay between you changing your status, and it changing to
> match.
Yup, I know. But MSN is not changing after several minutes, long after
aim/icq/yahoo have changed.

> Fixed the IQ version thing, thanks.
neato

> I can't reproduce the receiving many presence packets thing. Perhaps
> that's because you were sending them too quickly?
possibly. Also could be because I'm logged in twice and my other
client was doing version requests.  I'll track it down tomorrow.

-- 
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.org/
From [EMAIL PROTECTED]  Mon May 23 12:29:30 2005
From: [EMAIL PROTECTED] (James Bunton)
Date: Mon May 23 12:29:44 2005
Subject: [py-transports] epoll reactor for Twisted
Message-ID: <[EMAIL PROTECTED]>

Hi!

Who feels like being a guinea pig?

I've just implemented an epoll reactor for Twisted, which should 
improve performance on large servers.
It'll work in any of the transports, so feel free to try it out.
It runs fine on my server. Only two users, but hey :)

http://msn-transport.jabberstudio.org/tarballs/epoll-0.2.tar.gz


To get this to work on PyAIM/ICQ-t you'll have to add the following 
lines to main.py (at the top will do)
from twisted.internet import epollreactor
epollreactor.install()


You will of course need to be using Linux kernel 2.6.
The rest of the instructions are in a README in the tarball.

Let me know how it goes :)

---

James

Reply via email to