powered by Jive Software

Establishing BOSH session taking too long

Hello,

I have a RubyRails app which tries establish a session with my instance of OpenFire and pass the info to stophe. Establishing the connection on RubyRails side takes about 6 seconds. That feels a little too long. The most time is spent on the thrid leg of resouce binding. Would you have any idea why it?

openfire debug log:

2010.03.20 23:50:12 JettyLog: EOF
2010.03.20 23:50:12 JettyLog: continuation
RetryContinuation@1917192615,pending
2010.03.20 23:50:12 450354 (01/05/00) - Connection #51 tested: OK
2010.03.20 23:50:12 450355 (01/05/00) - Connection #51 tested: OK
2010.03.20 23:50:12 450355 (01/05/00) - Connection #52 tested: OK
2010.03.20 23:50:12 450356 (01/05/00) - Connection #52 tested: OK
2010.03.20 23:50:12 AuthorizationManager: Trying Default
Mapping.map(alem)
2010.03.20 23:50:12 DefaultAuthorizationMapping: No realm found
2010.03.20 23:50:12 AuthorizationManager: Trying Default
Policy.authorize(alem , alem)
2010.03.20 23:50:12 DefaultAuthorizationPolicy: Checking authenID
realm
2010.03.20 23:50:12 450356 (01/05/00) - Connection #53 tested: OK
2010.03.20 23:50:12 450357 (01/05/00) - Connection #53 tested: OK
2010.03.20 23:50:12 450357 (01/05/00) - Connection #54 tested: OK
2010.03.20 23:50:12 450358 (01/05/00) - Connection #54 tested: OK
2010.03.20 23:50:12 JettyLog: resume continuation
RetryContinuation@1917192615,pending,resumed
2010.03.20 23:50:12 JettyLog: continuation still pending {}
2010.03.20 23:50:12 JettyLog: continuation
RetryContinuation@1917192615
2010.03.20 23:50:12 JettyLog: EOF
2010.03.20 23:50:12 JettyLog: continuation
RetryContinuation@1917192615
2010.03.20 23:50:13 JettyLog: EOF
2010.03.20 23:50:13 JettyLog: continuation
RetryContinuation@1774349539,pending
2010.03.20 23:50:18 JettyLog: resume continuation
RetryContinuation@1774349539,pending,expired
2010.03.20 23:50:18 JettyLog: continuation still pending {}
2010.03.20 23:50:18 JettyLog: continuation
RetryContinuation@1774349539
2010.03.20 23:50:18 JettyLog: EOF
2010.03.20 23:50:18 JettyLog: continuation
RetryContinuation@1774349539
2010.03.20 23:50:18 JettyLog: continuation
RetryContinuation@1160821689,pending
2010.03.20 23:50:18 JettyLog: resume continuation
RetryContinuation@1160821689,pending,resumed
2010.03.20 23:50:18 JettyLog: continuation still pending {}
2010.03.20 23:50:18 JettyLog: continuation
RetryContinuation@1160821689
2010.03.20 23:50:18 JettyLog: EOF
2010.03.20 23:50:18 JettyLog: continuation
RetryContinuation@1160821689

log from ruby_bosh

bash$ irb
?>
?> require ‘ruby_bosh.rb’
?>
?> RubyBOSH.initialize_session(‘my…@myXMPPServer.net/asdfasdf’,
‘myPassword’, ‘http://myXMPPServer.net:5280/http-bind/’, {:timeout =>
10})

[START]2010-03-20T21:04:09-07:00 - initialize_bosh_session

Ruby-BOSH - SEND

Content-Type: text/xml; charset=utf-8;Accept: text/xml

Ruby-BOSH - RECV

DIGEST-MD5PLAINANONYMOUSCRAM-MD5zlib

[END]2010-03-20T21:04:09-07:00 - initialize_bosh_session

Ruby-BOSH - SEND

YWxlbUBkZXYucXdvcmt5Lm5ldC9hc2RmYXNkZg BhbGVtAFF3b3JreQ==

Content-Type: text/xml; charset=utf-8;Accept: text/xml

Ruby-BOSH - RECV

[warning] The Response is no more a String and the Response content is
now accessed through Response.body, please update your code

[START]2010-03-20T21:04:09-07:00 - send_restart_request

Ruby-BOSH - SEND

Content-Type: text/xml; charset=utf-8;Accept: text/xml

Ruby-BOSH - RECV

zlib

[warning] The Response is no more a String and the Response content is
now accessed through Response.body, please update your code

[END]2010-03-20T21:04:09-07:00 - send_restart_request

[START]2010-03-20T21:04:09-07:00 - request_resource_binding

Ruby-BOSH - SEND

bosh_2915< /iq>

Content-Type: text/xml; charset=utf-8;Accept: text/xml

Ruby-BOSH - RECV

[warning] The Response is no more a String and the Response content is
now accessed through Response.body, please update your code

[END]2010-03-20T21:04:15-07:00 - request_resource_binding

[START]2010-03-20T21:04:15-07:00 - send_session_request

Ruby-BOSH - SEND

Content-Type: text/xml; charset=utf-8;Accept: text/xml Ruby-BOSH - RECV

[warning] The Response is no more a String and the Response content is
now accessed through Response.body, please update your code

[END]2010-03-20T21:04:15-07:00 - send_session_request