On Fri, 2006-08-11 at 10:45 +0200, Stian B. Barmen wrote: > Hello James, thank you for replying. :) > > I changed the transport setting in ejabberd and have not been able to > recreate the error since. The new problem I get now is that when I log on to > the MSN network I get the following message and then a disconnect: > > Disconnected from MSN servers: [Failure instance: Traceback (failure with no > frames): exceptions.TypeError: int() argument must be a string or a number > ]
I also get this alot... > The problem sometimes occurs at logon, and sometimes after a few minutes. > > Also I seem to have a memory leak somewhere in the MSN transport: > > top - 10:41:19 up 19 days, 20:36, 2 users, load average: 3.90, 2.51, 7.91 > Tasks: 133 total, 1 running, 132 sleeping, 0 stopped, 0 zombie > Cpu(s): 0.5% us, 0.0% sy, 0.0% ni, 0.0% id, 99.2% wa, 0.3% hi, 0.0% si > Mem: 774964k total, 767648k used, 7316k free, 17408k buffers > Swap: 1413712k total, 525984k used, 887728k free, 119948k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 19735 jabber 18 0 792m 498m 1920 D 0 65.9 0:32.62 python > 19741 root 16 0 2128 760 548 R 0 0.1 0:01.42 top > > Here you can see the transport using 65% of my memory after running for 4-5 > minutes. Also my loadavg quickly goes to over 20 so there is something > really wrong. I have not noticed anything about memory leaks, but will look at that during the day. > Also se here: > > kermit pymsnt # ps aux |grep msn > jabber 19735 7.2 68.5 1312228 531408 ? Dl 10:34 0:39 python > /usr/local/pymsnt/PyMSNt.py > > My last debugs logs are: > <snip> > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of James Bunton > Sent: 10. august 2006 14:25 > To: PyTransports Discussion > Subject: Re: [py-transports] Loosing messages > > The exception means that some client is sending an invalid MSNObject :| > > As for losing messages, are you using ejabberd? jabber.org.au had the same > problem and solved it by increasing the shaping limit for the msn transport > socket. See my post here > http://modevia.com/pipermail/py-transports/2006-July/003002.html > > After making that change I can't reproduce the problem anymore. > Please let me know how you go. > > --- > > James > > > On 10/08/2006, at 9:18 PM, Stian B. Barmen wrote: > > > The latest problem I have noticed is that I loose messages out from > > the transport, receiving is no problem. Here is what I did: > > > > Logged on MSN user (my wifes account) with the Windows Live Messenger > > client. Used Psi and the Jabber transport (svn 0.11.2-dev rev 223) > > with my own account. Then I (pretty quickly) sent single character > > messages, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, and only 4 and 5 got trough. > > Did the same test the other way, all got trough. Did the same test > > with about 1 second between each message, then I got 1, 5, 7 and 0 > > trough. > > > > Nothing much in the log, but this might be interesting? > > > > [2006-08-10 13:11:23] Traceback (most recent call last): > > File "/usr/lib/python2.4/site-packages/twisted/python/ > > log.py", line 53, in callWithLogger > > return callWithContext({"system": lp}, func, *args, **kw) > > File "/usr/lib/python2.4/site-packages/twisted/python/ > > log.py", line 38, in callWithContext > > return context.call({ILogContext: newCtx}, func, *args, > > **kw) > > File "/usr/lib/python2.4/site-packages/twisted/python/ > > context.py", line 59, in callWithContext > > return self.currentContext().callWithContext(ctx, func, > > *args, **kw) > > File "/usr/lib/python2.4/site-packages/twisted/python/ > > context.py", line 37, in callWithContext > > return func(*args,**kw) > > --- <exception caught here> --- > > File "/usr/lib/python2.4/site-packages/twisted/internet/ > > epollreactor.py", line 199, in _doReadOrWrite > > why = selectable.doRead() > > File "/usr/lib/python2.4/site-packages/twisted/internet/ > > tcp.py", line 349, in doRead > > return self.protocol.dataReceived(data) > > File "/usr/lib/python2.4/site-packages/twisted/protocols/ > > basic.py", line 232, in dataReceived > > why = self.lineReceived(line) > > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 814, in > > lineReceived > > try: handler(params.split(' ')) > > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 1170, > > in handle_NLN > > self.handleAvatarHelper(msnContact, params[4]) > > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 1146, > > in handleAvatarHelper > > msnobj = MSNObject(unquote(msnobjStr)) > > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 478, in > > __init__ > > self.parse(s) > > File "/usr/local/pymsnt/src/legacy/msn/msn.py", line 524, in > > parse > > self.size = int(e.getAttribute("Size")) > > exceptions.TypeError: int() argument must be a string or a > > number > > > > > > -stian > > > > _______________________________________________ > > py-transports mailing list > > [email protected] > > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports > > _______________________________________________ > py-transports mailing list > [email protected] > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports > > _______________________________________________ > py-transports mailing list > [email protected] > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports -- ?Oscar Hellstr?m, [EMAIL PROTECTED] web: personal.oscarh.net jid: [EMAIL PROTECTED]
