punjab only returns "XEP-0124 - BOSH"

32 views
Skip to first unread message

seiji takegata

unread,
Oct 15, 2013, 2:48:36 AM10/15/13
to punja...@googlegroups.com
Hi, all

I'm building xmpp/web chat server.

First I tried Openfire http-bind option thru Candy on Apache.
It seems working but unstable ( connections are broken within several minutes.)

I learned Openfire built-in http-bind is buggy and punjab may be better.

So I'm trying punjab with:
candy-chat-candy-v1.0.9-8 
Openfire-3.8.2-1 
CentOS release 6.4
Python 2.6.6
Twisted-13.1.0

I don't know which version of the punjab I'm trying because gitHub download ZIP didn't show me.

I execute 

twistd -y punjab.tac 

in a root shell, no message showed, looks fine, but candy will not connect.

for a test, I accessed Openfire's http-bind with

then it returns BOSH message, but punjab

returns "XEP-0124 - BOSH" only.

What should I do next?
Thank you.

Christopher Zorn

unread,
Oct 15, 2013, 4:00:35 PM10/15/13
to punja...@googlegroups.com
Punjab does not support GET for doing BOSH. You will always get the same message when a GET request is made. You have to make POST requests. So you have to configure candy to do the right thing.


--
You received this message because you are subscribed to the Google Groups "Punjab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to punjab-xmpp...@googlegroups.com.
To post to this group, send email to punja...@googlegroups.com.
Visit this group at http://groups.google.com/group/punjab-xmpp.
For more options, visit https://groups.google.com/groups/opt_out.

seiji takegata

unread,
Oct 15, 2013, 5:35:20 PM10/15/13
to punja...@googlegroups.com
 Christopher.
Thank you very much for your comment,
I understand my checking method is not correct. 
I will check the candy setting not to use GET request but I'm not sure if candy is using GET request.
Before that, I want to check the connection between punjab and Openfire. How can I do that?
Thank you.


2013年10月16日水曜日 5時00分35秒 UTC+9 Christopher Zorn:

Christopher Zorn

unread,
Oct 16, 2013, 12:51:30 PM10/16/13
to punja...@googlegroups.com
The only way to test the connection between Punjab and Openfire is to start a BOSH session. You can do with with a curl request. You can also use firebug or chrome's developer tools to check to see if candy is doing the right thing. 

seiji takegata

unread,
Oct 17, 2013, 12:32:38 AM10/17/13
to punja...@googlegroups.com
Thank you. I'm gonna try it someday.
By the way, I found a stable way to connect openfire and candy directly.
It seems working well know.
Thank you.

2013年10月17日木曜日 1時51分30秒 UTC+9 Christopher Zorn:
Reply all
Reply to author
Forward
0 new messages