I'm using PyMSNt with jabberd2 and it works fine.  I haven't noticed
it failing to connect, ever.  This is a very slow machine, so maybe
the context switch happens much later than the race condition
requires.

Have you actually done a tcpdump to check what xml is being sent.  I
have experiences before where ejabberd just drops connections with
invalid passwords, and various framework fail to treat that as wrong
password, so they just keep trying.

On 11/8/05, Gonzalo Barrio <[EMAIL PROTECTED]> wrote:
> I think that there is a problem of sincronization in the startup process
> connecting with jabberd2. The jabberd2 send an iq requesting disco#info
> before the PyMSN set the iq handlers. This thing happen because of
> multithreaded of twisted.
> I think there's something to do with this to permit a correct startup
> process. Because it's failing sometimes with this debug output:
>
> 2005/11/08 15:59 ART [-] Starting factory
> <twisted.xish.xmlstream.XmlStreamFactory instance at 0xb79ed68c>
> 2005/11/08 15:59 ART [-] Loaded.
> 2005/11/08 15:59 ART [-] Enabling Multithreading.
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb785808c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb785808c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 2 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb786e9ec>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 3 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb78741cc>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 2 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb7874a0c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 2 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb787b46c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 3 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb787bdac>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 2 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb787ba2c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 2 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb7874d4c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 3 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb786eb4c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 2 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb787f1ac>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'self': <mai
> n.PyTransport instance at 0xb784f9ac>}
> 2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
> instance at 0xb79ed4cc> will retry in 2 seconds
> 2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
> componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
> {'xmlstream': <t
> wisted.xish.xmlstream.XmlStream instance at 0xb787f86c>, 'self':
> <main.PyTransport instance at 0xb784f9ac>}
>
>
> any comments ?
>
> Gonzalo Barrio Linares
>
>
> James Bunton wrote:
>
> > Hi all.
> >
> > PyMSNt 0.10.2 has been released. This release just has a few critical
> > fixes, and is recommended for all users of 0.10.x
> > http://msn-transport.jabberstudio.org
> > Please remember to read through the documentation on that page. As
> > always, feedback on the program and docs are welcome.
> >
> > Also of note is that the transport now uses SVN. The repository is
> > available for anonymous public access at svn://delx.cjb.net/pymsnt
> >
> > In svn://delx.cjb.net/pymsnt/branches/0_11_x is some preliminary file
> > transfer code. It works for receiving files. I'll be polishing this up
> > so that it works with more clients, and so that you can send as well.
> >
> > If you want to track the progress of file transfer, its probably a
> > good idea to join py-transports. Also, you're best off not checking
> > out trunk :)
> >
> > Enjoy!
> >
> > ---
> >
> > James
> >
> > _______________________________________________
> > py-transports mailing list
> > py-transports@blathersource.org
> > http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
> >
>
>
> _______________________________________________
> py-transports mailing list
> py-transports@blathersource.org
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>


--
- Norman Rasmussen
 - Email: [EMAIL PROTECTED]
 - Home page: http://norman.rasmussen.co.za/
From [EMAIL PROTECTED]  Tue Nov  8 20:19:21 2005
From: [EMAIL PROTECTED] (Gonzalo Barrio)
Date: Tue Nov  8 20:19:29 2005
Subject: [py-transports] PyMSNt 0.10.2 released
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
        <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Is not a password problem because in the other side the router (of 
jabberd2) accept the password.
It fail every 2 of 5 intents of connects.
I don't know why the disconnect is happening. But the machine where the 
jabberd2 is running is pretty fast. The slowest is were PyMSNt run.

Any other comment ?
thanks,
Gonzalo Barrio Linares

Norman Rasmussen wrote:

>I'm using PyMSNt with jabberd2 and it works fine.  I haven't noticed
>it failing to connect, ever.  This is a very slow machine, so maybe
>the context switch happens much later than the race condition
>requires.
>
>Have you actually done a tcpdump to check what xml is being sent.  I
>have experiences before where ejabberd just drops connections with
>invalid passwords, and various framework fail to treat that as wrong
>password, so they just keep trying.
>
>On 11/8/05, Gonzalo Barrio <[EMAIL PROTECTED]> wrote:
>  
>
>>I think that there is a problem of sincronization in the startup process
>>connecting with jabberd2. The jabberd2 send an iq requesting disco#info
>>before the PyMSN set the iq handlers. This thing happen because of
>>multithreaded of twisted.
>>I think there's something to do with this to permit a correct startup
>>process. Because it's failing sometimes with this debug output:
>>
>>2005/11/08 15:59 ART [-] Starting factory
>><twisted.xish.xmlstream.XmlStreamFactory instance at 0xb79ed68c>
>>2005/11/08 15:59 ART [-] Loaded.
>>2005/11/08 15:59 ART [-] Enabling Multithreading.
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb785808c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb785808c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 2 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb786e9ec>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 3 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb78741cc>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 2 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb7874a0c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 2 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb787b46c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 3 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb787bdac>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 2 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb787ba2c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 2 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb7874d4c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 3 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb786eb4c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 2 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb787f1ac>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentDisconnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'self': <mai
>>n.PyTransport instance at 0xb784f9ac>}
>>2005/11/08 15:59 ART [XmlStream,client] <twisted.internet.tcp.Connector
>>instance at 0xb79ed4cc> will retry in 2 seconds
>>2005/11/08 15:59 ART [XmlStream,client] INFO ::  ::  ::
>>componentConnected :: <main.PyTransport instance at 0xb784f9ac> ::
>>{'xmlstream': <t
>>wisted.xish.xmlstream.XmlStream instance at 0xb787f86c>, 'self':
>><main.PyTransport instance at 0xb784f9ac>}
>>
>>
>>any comments ?
>>
>>Gonzalo Barrio Linares
>>
>>
>>James Bunton wrote:
>>
>>    
>>
>>>Hi all.
>>>
>>>PyMSNt 0.10.2 has been released. This release just has a few critical
>>>fixes, and is recommended for all users of 0.10.x
>>>http://msn-transport.jabberstudio.org
>>>Please remember to read through the documentation on that page. As
>>>always, feedback on the program and docs are welcome.
>>>
>>>Also of note is that the transport now uses SVN. The repository is
>>>available for anonymous public access at svn://delx.cjb.net/pymsnt
>>>
>>>In svn://delx.cjb.net/pymsnt/branches/0_11_x is some preliminary file
>>>transfer code. It works for receiving files. I'll be polishing this up
>>>so that it works with more clients, and so that you can send as well.
>>>
>>>If you want to track the progress of file transfer, its probably a
>>>good idea to join py-transports. Also, you're best off not checking
>>>out trunk :)
>>>
>>>Enjoy!
>>>
>>>---
>>>
>>>James
>>>
>>>_______________________________________________
>>>py-transports mailing list
>>>py-transports@blathersource.org
>>>http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>
>>>      
>>>
>>_______________________________________________
>>py-transports mailing list
>>py-transports@blathersource.org
>>http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>>    
>>
>
>
>--
>- Norman Rasmussen
> - Email: [EMAIL PROTECTED]
> - Home page: http://norman.rasmussen.co.za/
>_______________________________________________
>py-transports mailing list
>py-transports@blathersource.org
>http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>  
>

Reply via email to