Connection timeout

18 views
Skip to first unread message

Tom

unread,
Aug 30, 2009, 4:55:17 PM8/30/09
to Blather
Hi Jeff,

if I leave the connection idle for a time between 10 to 25 minutes the
connection seems to be aborted. Before that time I can exchange many
messages without any problem.
Presence doesn't change at first, but blather simply doesn't accept
any more stanzas.
Running in debug mode I dont see a single error or failure, the logger
simply is 'frozen' after the timeout, or whatever it is.
Any idea why this could be?

Thanks,

Tom

Jeff Smick

unread,
Aug 31, 2009, 10:18:03 AM8/31/09
to xmpp-b...@googlegroups.com
Hey Tom,

My bet is that it's actually something to do with beanstalk. When you
tell the beanstalk client to wait for new jobs (I think) it'll block
the entire process until it sees something new. You can test that by
waiting for it to freeze, then pushing a new job to beanstalk. If that
is the case, run your beanstalk client in a new thread. Check out
EM.defer: http://eventmachine.rubyforge.org/#M000212

--Jeff
Reply all
Reply to author
Forward
0 new messages