Ok, I applied Lars' patches and its mostly working now. I can send myself files 
from a MSN client (7.5) without problems. The only error in the debug is these 
warnings: 

2006/01/04 12:45 CET [OneSwitchboardSession,client] Warning in transfer: 
<tlib.msn.msn.SLPLink_FileReceive instance at 0xb7241eac> field9,2
2006/01/04 12:45 CET [OneSwitchboardSession,client] Warning in transfer: 
<tlib.msn.msn.SLPLink_FileReceive instance at 0xb7241eac> field9,2

But that seems to be minor, and not critical at least. But, if I try from a 
Windows Messenger client (you remember, the very old one that comes 
preinstalled in windows xp?) the sending never starts and my jabber client 
never gets notified of an incoming file transfer. In debug I get: 

2006/01/04 12:56 CET [OneSwitchboardSession,client] Traceback (most recent call 
last):
          File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 
58, in callWithLogger
            return callWithContext({"system": lp}, func, *args, **kw)
          File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 
43, 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/pollreactor.py", line 160, 
in _doReadOrWrite
            why = selectable.doRead()
          File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 
347, in doRead
            return self.protocol.dataReceived(data)
          File "/usr/lib/python2.4/site-packages/twisted/protocols/basic.py", 
line 240, in dataReceived
            return self.rawDataReceived(data)
          File "/usr/local/PyMSNt/src/tlib/msn/msn.py", line 823, in 
rawDataReceived
            self.currentMessage.readPos += len(data)
        exceptions.AttributeError: 'NoneType' object has no attribute 'readPos'

2006/01/04 12:56 CET [OneSwitchboardSession,client] Stopping factory 
<twisted.internet.protocol.ClientFactory instance at 0xb72852ac>

After this when I go back to the MSN client to send a file I get the same error 
every time. To resolve the problem I have to log off the transport and then 
back on again. Then it works from 7.5 like before. 

Reproduce: send file from msn 7.5 = works, then send file from windows 
messenger = fails, then send file from msn 7.5 = fails, then log off-on 
transport, then file transfer from msn 7.5 = works. 

Best regards
Stian B. Barmen

Reply via email to