Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CED679829 for ; Sat, 5 May 2012 01:18:11 +0000 (UTC) Received: (qmail 56731 invoked by uid 500); 5 May 2012 01:18:11 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 56698 invoked by uid 500); 5 May 2012 01:18:11 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 56691 invoked by uid 99); 5 May 2012 01:18:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2012 01:18:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 May 2012 01:18:10 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1CF92431AD1 for ; Sat, 5 May 2012 01:17:50 +0000 (UTC) Date: Sat, 5 May 2012 01:17:50 +0000 (UTC) From: "Jeffrey Robbins (JIRA)" To: commits@activemq.apache.org Message-ID: <1081474870.29803.1336180670127.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <517834200.26235.1336121330284.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (APLO-199) Can not consume many messages on Web Sockets protocol MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/APLO-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268844#comment-13268844 ] Jeffrey Robbins commented on APLO-199: -------------------------------------- Switching the listener.py to 'ack': 'client' made the test run longer, but it still ends up hanging. > Can not consume many messages on Web Sockets protocol > ----------------------------------------------------- > > Key: APLO-199 > URL: https://issues.apache.org/jira/browse/APLO-199 > Project: ActiveMQ Apollo > Issue Type: Bug > Components: apollo-stomp > Affects Versions: 1.2 > Environment: Google Chrome 19.0.1084.30 (Official Build 132762) beta > OS Linux > WebKit 536.5 (@114489) > JavaScript V8 3.9.24.14 > Reporter: Jeff Mesnil > Attachments: publisher.py > > > An user reported a bug on stomp-websocket which was expecting only 1 STOMP frame for each Web Socket messages. > I fixed it to ensure that the JavaScript library can acccept many STOMP frames in a single Web Socket message: https://github.com/jmesnil/stomp-websocket/blob/multiple_stomp_frames/dist/stomp.js > However, even with that fix, I am not able to consume many messages sent to the Web browser. > Steps to reproduce: > * use Apollo websocket example > * replace its js/stomp.js by the one with the fix: https://github.com/jmesnil/stomp-websocket/blob/multiple_stomp_frames/dist/stomp.js > * run the attached python script (which uses stomp.py library) > $ python publisher.py > => OK the chat will consume the 300 produced messages + a SHUTDOWN message > * update the publisher.py and change messages to 100000 > * run again the attached python script > => FAIL the chat will consume only 344 or so messages (all from a single Web Sockets message) > => the publisher.py blocks after sending 8,874 messages and does not send all the expected messages > fiy, the Apollo web sockets example used default ack for the subscriber ('auto') > I am not sure whether the bug is in my JavaScript library or in Apollo but the publisher being stuck looks fishy. > Afaict, the Web browser receives only a single Web Socket message from the broker. I added debug traces at the very top when I receive a WebSockets frames and I see only 1 containing STOMP MESSAGE frames. > The REST management API gives me these info > # WebSocket consumer: > Protocol Info > protocol: stomp > protocol version: 1.0 > protocol session id: mybroker-6e > user: admin > subscription count: 1 > waiting on: client request > Metrics > messages received from the client: 0 > messages sent to the client: 344 > # Python producer > Protocol Info > protocol: stomp > protocol version: 1.0 > protocol session id: mybroker-6f > user: admin > subscription count: 0 > waiting on: blocked sending to: stomp subscription id: sub-0, remote address: /127.0.0.1:36973 (via topic:chat.general) > Metrics > messages received from the client: 8,874 > messages sent to the client: 0 -- 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