[ 
https://issues.apache.org/jira/browse/VYSPER-309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259458#comment-13259458
 ] 

Stig Runar Vangen commented on VYSPER-309:
------------------------------------------

The following is a log from a within a chat session where I try to send myself 
a message. I am using Pidgin as a chat client in this case.
------------------------------------
10:14:48 
POST / HTTP/1.1
Host: localhost
User-Agent: Pidgin 2.10.3 (libpurple 2.10.3)
Content-Encoding: text/xml; charset=utf-8
Content-Length: 628

<body rid='3980951021345749' sid='a77839ea3d6a43ffb9dbcbda86c58e44' to='wis.no' 
xml:lang='en' xmlns='http://jabber.org/protocol/httpbind' 
xmlns:xmpp='urn:xmpp:xbosh'><message xmlns='jabber:client' type='chat' 
id='purple3bd2e332' to='[email protected]'><composing 
xmlns='http://jabber.org/protocol/chatstates'/></message><message 
xmlns='jabber:client' type='chat' id='purple3bd2e333' to='[email protected]'><active 
xmlns='http://jabber.org/protocol/chatstates'/><body>test</body></message><message
 xmlns='jabber:client' type='chat' id='purple3bd2e334' to='[email protected]'><active 
xmlns='http://jabber.org/protocol/chatstates'/></message></body>
10:15:06 
POST / HTTP/1.1
Host: localhost
User-Agent: Pidgin 2.10.3 (libpurple 2.10.3)
Content-Encoding: text/xml; charset=utf-8
Content-Length: 264

<body rid='3980951021345750' sid='a77839ea3d6a43ffb9dbcbda86c58e44' to='wis.no' 
xml:lang='en' xmlns='http://jabber.org/protocol/httpbind' 
xmlns:xmpp='urn:xmpp:xbosh'><iq xmlns='jabber:client' type='get' 
id='purple3bd2e335'><ping xmlns='urn:xmpp:ping'/></iq></body>
10:15:39 
HTTP/1.1 200 OK
Date: Mon, 23 Apr 2012 08:15:39 GMT
Server: Vysper/0.5
Content-Type: text/xml;charset=UTF-8
Content-Length: 57
Access-Control-Allow-Origin: *

<body xmlns="http://jabber.org/protocol/httpbind";></body>
10:15:39 
HTTP/1.1 200 OK
Date: Mon, 23 Apr 2012 08:15:39 GMT
Server: Vysper/0.5
Content-Type: text/xml;charset=UTF-8
Content-Length: 279
Access-Control-Allow-Origin: *

<body xmlns="http://jabber.org/protocol/httpbind";><message 
xmlns="jabber:client" to="[email protected]" id="purple3bd2e333" type="chat" 
from="[email protected]/b720182b3dd848ffb70f408b8a250841"><active 
xmlns="http://jabber.org/protocol/chatstates";></active><body>test</body></message></body>
10:15:39 
HTTP/1.1 200 OK
Date: Mon, 23 Apr 2012 08:15:39 GMT
Server: Vysper/0.5
Content-Type: text/xml;charset=UTF-8
Content-Length: 473
Access-Control-Allow-Origin: *

<body xmlns="http://jabber.org/protocol/httpbind";><message 
xmlns="jabber:client" to="[email protected]" id="purple3bd2e332" type="chat" 
from="[email protected]/b720182b3dd848ffb70f408b8a250841"><composing 
xmlns="http://jabber.org/protocol/chatstates";></composing></message><message 
xmlns="jabber:client" to="[email protected]" id="purple3bd2e334" type="chat" 
from="[email protected]/b720182b3dd848ffb70f408b8a250841"><active 
xmlns="http://jabber.org/protocol/chatstates";></active></message></body>
10:15:40 
POST / HTTP/1.1
Host: localhost
User-Agent: Pidgin 2.10.3 (libpurple 2.10.3)
Content-Encoding: text/xml; charset=utf-8
Content-Length: 173

<body rid='3980951021345751' sid='a77839ea3d6a43ffb9dbcbda86c58e44' to='wis.no' 
xml:lang='en' xmlns='http://jabber.org/protocol/httpbind' 
xmlns:xmpp='urn:xmpp:xbosh'></body>
-------------------------
As you can see, the client sends both the message and a ping before it receives 
anything. What it receives is a response to the ping. 20 seconds passed in 
between these messages, and an another 30 seconds until the ping response. At 
the same time, the queued chat message are sent back to the client, as well as 
its chat status update.

I would say that these problems occur every time you try to send a chat message.

                
> BOSH plugin does not always send or recieve messages from client
> ----------------------------------------------------------------
>
>                 Key: VYSPER-309
>                 URL: https://issues.apache.org/jira/browse/VYSPER-309
>             Project: VYSPER
>          Issue Type: Bug
>          Components: BOSH
>    Affects Versions: 0.7
>         Environment: Tomcat 7.0.25 / Tomcat 7.0.27 / Jetty 8.1.2
>            Reporter: Stig Runar Vangen
>
> The BOSH extension does not always return a result from a request. I saw the 
> same behavior using both the Jetty Continuation API's and the Servlet 3.0 
> API's. The result of this is that Emite (http://code.google.com/p/emite/) 
> never finished logging in. I also tried using Pidgin (http://www.pidgin.im/), 
> which has BOSH support if you enable it. Using Pidgin I was able to log in 
> successfully, but chatting was a bit problematic. Sending a message to the 
> server wasn't noticed by the server using an already open async request. I 
> know the server never received the message as I had enabled both console 
> logging of all BOSH messages as well as database logging of all chat 
> messages. When Piding lost the connection and created a new one however, the 
> message was resent, and the message got through. I then also received pending 
> messages from others.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to