jaxl php,php – jaxl无法连接到Prosody

我可以与其他客户认证,包括SleekXMPP和Strophe.

在Ubuntu 12.04上使用Prosody 0.8.2,在jaxl上使用最新的主HEAD

(2518a44b9dfeb9ec947922f078cf4f8663497712).

代码:

require 'JAXL/jaxl.php';

$cli = new JAXL(array(

'jid' => 'yang@localhost',

'pass' => 'asdf',

'bosh_url' => 'http://localhost/chat/candy/example/http-bind/'

));

$cli->add_cb('on_auth_success', function() {

print 'yay';

});

$cli->start();

来自客户:

来自服务器:

xmlns:stream='http://etherx.jabber.org/streams'

xmlns:xmpp='urn:xmpp:xbosh' inactivity='60' wait='30' polling='5'

secure='true' hold='1' from='localhost' ver='1.6'

sid='72604504-a5be-4ab6-aba0-9686cca478f3' requests='2'

xmlns='http://jabber.org/protocol/httpbind'>

来自客户:

biwsbj15YW5nQGxvY2FsaG9zdCxyPVpRWUp0b1JwUXMwTlFkYlJ3VnlNT1FvQXN5bnhLWlN1OUpocjdVeTdkbFE9

来自服务器:

sid='72604504-a5be-4ab6-aba0-9686cca478f3' xmlns:stream =

'http://etherx.jabber.org/streams'>

来自客户:

来自Prosody日志:

Oct 25 01:18:53 socket debug server.lua: accepted new client

connection from 127.0.0.1:41313 to 5280

Oct 25 01:18:53 mod_bosh debug BOSH body open (sid: %s)

Oct 25 01:18:53 bosh9096614e-a319-4234-b281-d5806b7bc558 debug

BOSH session created for request from 127.0.0.1

Oct 25 01:18:53 mod_bosh info New BOSH session, assigned it

sid '9096614e-a319-4234-b281-d5806b7bc558'

Oct 25 01:18:53 httpserver debug Sending response to c890f0

Oct 25 01:18:53 httpserver debug Destroying request c890f0

Oct 25 01:18:53 httpserver debug Request has destroy callback

Oct 25 01:18:53 socket debug server.lua: closed client handler and

removed socket from list

Oct 25 01:18:53 mod_bosh debug Session

9096614e-a319-4234-b281-d5806b7bc558 has 0 out of 1 requests open

Oct 25 01:18:53 mod_bosh debug and there are 0 things in the

send_buffer

Oct 25 01:18:53 socket debug server.lua: accepted new client

connection from 127.0.0.1:41314 to 5280

Oct 25 01:18:53 mod_bosh debug BOSH body open (sid:

9096614e-a319-4234-b281-d5806b7bc558)

Oct 25 01:18:53 mod_bosh debug BOSH stanza received:

mechanism='SCRAM-SHA-1' xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>

Oct 25 01:18:53 bosh9096614e-a319-4234-b281-d5806b7bc558 debug

Received[c2s_unauthed]:

xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>

Oct 25 01:18:53 auth_internal_plain debug NODEprep failed on

username: yang@localhost

Oct 25 01:18:53 localhost:saslauth debug sasl reply:

xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>

Oct 25 01:18:53 mod_bosh debug We have an open request, so

sending on that

Oct 25 01:18:53 httpserver debug Sending response to ccd1d0

Oct 25 01:18:53 httpserver debug Destroying request ccd1d0

Oct 25 01:18:53 httpserver debug Request has destroy callback

Oct 25 01:18:53 bosh9096614e-a319-4234-b281-d5806b7bc558 debug

BOSH session marked as inactive at 1351153133

Oct 25 01:18:53 socket debug server.lua: closed client handler and

removed socket from list

Oct 25 01:18:53 mod_bosh debug Destroying the request now...

Oct 25 01:18:53 httpserver debug Destroying request ccd1d0

Oct 25 01:18:53 mod_bosh debug Session

9096614e-a319-4234-b281-d5806b7bc558 has 0 out of 1 requests open

Oct 25 01:18:53 mod_bosh debug and there are 0 things in the

send_buffer

Oct 25 01:18:53 socket debug server.lua: accepted new client

connection from 127.0.0.1:41315 to 5280

Oct 25 01:18:53 mod_bosh debug BOSH body open (sid:

9096614e-a319-4234-b281-d5806b7bc558)

Oct 25 01:18:53 mod_bosh debug Session

9096614e-a319-4234-b281-d5806b7bc558 has 1 out of 1 requests open

Oct 25 01:18:53 mod_bosh debug and there are 0 things in the

send_buffer

Oct 25 01:18:53 mod_bosh debug Have nothing to say, so

leaving request unanswered for now

Oct 25 01:18:53 httpserver debug Request d8b230 left open,

on_destroy is function(mod_bosh.lua:81)

Oct 25 01:18:53 bosh67a53eee-1bdb-41f6-98cb-2413808fad65 debug

BOSH client inactive too long, destroying session at 1351153133

Oct 25 01:18:53 bosh67a53eee-1bdb-41f6-98cb-2413808fad65 info

Destroying session for (unknown) ((unknown)@localhost)

有任何想法吗?在此先感谢您的帮助.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值