You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Patrick Sharp (JIRA)" <ji...@apache.org> on 2014/05/01 22:58:16 UTC

[jira] [Comment Edited] (AMQ-4740) heart-beat is disabled when connecting to web socket

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

Patrick Sharp edited comment on AMQ-4740 at 5/1/14 8:57 PM:
------------------------------------------------------------

Seeing the same exception as Paddy.

I'm using the 5.9.1 homebrew version locally, but seeing the same thing on our staging environment.

If I set the heartbeat to 0,0, the browser receives messages, even though it disconnects every 5 minutes and has to reconnect. 

With the heartbeat set to 10000,10000, the browser never receives messages.


was (Author: jakanapes):
Seeing the same exception as Paddy.

I'm using the 5.9.1 homebrew version locally, but seeing the same thing on our staging environment.

> heart-beat is disabled when connecting to web socket
> ----------------------------------------------------
>
>                 Key: AMQ-4740
>                 URL: https://issues.apache.org/jira/browse/AMQ-4740
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.8.0
>         Environment: Google Chrome	29.0.1547.76 (Official Build 223446) 
>            Reporter: Jeff Mesnil
>             Fix For: 5.9.1, 5.10.0
>
>         Attachments: AMQ-4740.patch
>
>
> If I use the stomp.js library to connect to ActiveMQ over its WebSocket url (ws://localhost:61614), the CONNECTED frame returns with disabled heart-beat:
> CONNECTED
> heart-beat:0,0
> session:ID:retsina.local-63633-1380117269290-2:1
> server:ActiveMQ/5.8.0
> version:1.1
> If I connect to its TCP socket (localhost:61613), the CONNECT frame will have heart-beat:
> CONNECTED
> heart-beat:10000,10000
> session:ID:retsina.local-63384-1380115729700-2:12
> server:ActiveMQ/5.8.0
> version:1.1
> In both case, the stomp.js send the same CONNECT frame with heart-beat:
> CONNECT
> login:user
> passcode:password
> accept-version:1.1,1.0
> heart-beat:10000,10000
> Is heart-beat disabled on purpose for Web Socket? Please note that the stomp.js does support heart-beat (using window.setInterval in a Web browser)



--
This message was sent by Atlassian JIRA
(v6.2#6252)