[jadmin] pyYIMt disconnects after 5 minutes

Norman Rasmussen norman at rasmussen.co.za
Mon Nov 5 04:44:55 CST 2007


On Nov 5, 2007 11:41 AM, oliver bril <oliver_bril at hotmail.com> wrote:
> Perhaps someone can help me out. Somehow my yahoo gateway disconnects the
> user after 5 minutes. So everything works fine only I can't stay connected
> longer than 5 minutes.
>
> I don't have any problems with my msn,icq and aim gateway. Also when I
> connect directly to the jabberd2 server I have this problem so it doesn't
> seem to be a problem between the jabberXCP and Jabbed2 server.
>
> The debug log:
>
>  xmpp_offline: user1 at imdemo.ibpmail.com {'test1': ('available', 'away',
> None), 'test2': ('available', None, None)}

Hey oliver,

hmm:

xmpp_offline is printed in the y_send_offline method,
y_send_offline is called from three places:
 - xmpp presense unavailable was received
 - transport was asked to shutdown
 - y_closed was called.

y_closed is the only place that will send a REMOTE_SERVER_TIMEOUT
error as far as I can see.

now the tricky part is y_closed can be called from:
 - find-bad-connections,
 - yahoo closed connection,
 - trying to register when already connected,
 - yahoo reporting successful login twice.

Can you insert a print_stack into y_send_offline in yahoo.py, so it
looks like this:

 def y_send_offline(self,fromjid,resource=None,status=None):
        traceback.print_stack()
        if config.dumpProtocol: print
'xmpp_offline:',fromjid,self.userlist[fromjid].roster
        fromstripped = fromjid

it should print out the current stack on stdout, which will help us
discover where the event is coming from.

-- 
- Norman Rasmussen
 - Email: norman at rasmussen.co.za
 - Home page: http://norman.rasmussen.co.za/


More information about the JAdmin mailing list