Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 45035 invoked from network); 19 Jan 2010 17:05:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jan 2010 17:05:06 -0000 Received: (qmail 60437 invoked by uid 500); 19 Jan 2010 17:05:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 60375 invoked by uid 500); 19 Jan 2010 17:05:06 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 60365 invoked by uid 99); 19 Jan 2010 17:05:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 17:05:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 209.85.218.219 as permitted sender) Received: from [209.85.218.219] (HELO mail-bw0-f219.google.com) (209.85.218.219) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2010 17:04:56 +0000 Received: by bwz19 with SMTP id 19so2565937bwz.8 for ; Tue, 19 Jan 2010 09:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=6Riew9XS2V+g9xQDSQVQ0F1VxjWfEngfn1wZrpzcX+I=; b=vBl6dhAjfsberG2yvjoemM8NP4JcPoWWkXkCTZCYGTbgp5Slmrt29mHogWsopmSpmu MeRueWWepHw8ZDdIzgjOEHuqsmdg+i5q4gUzr0QLEA+drf6thGYafIPsIliRnSttgg7H 8AsFahD2pc8hJkIL9Y+o43SlzP5Ltb+hXF7Fc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=LqqAav/6S0C33gjwIxOnDZHLDMFDbkidORc/5oeBygQDGU44sWqOJ7/7iBCxZWDUR6 7uvveXU6G/4k3N83t6NZCvqrdWIfJC7Ipt5/f8yIinS4GDpP5LF73aOLDkcH5OUwGCSk sQmkr+BkGP33IZL1JK22rUAbmTIKtGNvHvt0c= MIME-Version: 1.0 Sender: chubrilo@gmail.com Received: by 10.239.189.11 with SMTP id r11mr129006hbh.211.1263920675109; Tue, 19 Jan 2010 09:04:35 -0800 (PST) In-Reply-To: <4e6f67721001190858n79df8db1rf9c3de32be349339@mail.gmail.com> References: <4e6f67721001140309t1717c909kcf9d8dec4e1f94d9@mail.gmail.com> <36e91d9d1001140326g1770f5cfg97c8e6428bf9345a@mail.gmail.com> <4e6f67721001140330y4d2b2589g12cdf9606a0b6e8f@mail.gmail.com> <4e6f67721001190849lc7731aah6881316eea5e5446@mail.gmail.com> <4e6f67721001190858n79df8db1rf9c3de32be349339@mail.gmail.com> Date: Tue, 19 Jan 2010 18:04:35 +0100 X-Google-Sender-Auth: 8530d16507d90fae Message-ID: <36e91d9d1001190904k560cf887j6c09df7a55be40cd@mail.gmail.com> Subject: Re: ActiveMQ FuseSource Stomp large payloads problem From: Dejan Bosanac To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001485f6db2edd3df5047d877613 --001485f6db2edd3df5047d877613 Content-Type: text/plain; charset=ISO-8859-1 Hi Jamie, you can register fuse account here https://fusesource.com/login and then you should be able to submit issues to stomp project directly http://fusesource.com/issues/browse/STOMP Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Tue, Jan 19, 2010 at 5:58 PM, Jamie McCrindle wrote: > Ah, ok, I'll raise it in the ActiveMQ jira, I was just directed to the > FuseSource jira > > cheers, > j. > > On Tue, Jan 19, 2010 at 4:56 PM, Rob Davies wrote: > > You just need to register in jira - > > https://issues.apache.org/activemq/secure/Signup!default.jspa - then you > > should be able to raise a bug > > On 19 Jan 2010, at 16:49, Jamie McCrindle wrote: > > > >> Hiya, > >> > >> We've worked around the problem by increasing the buffer size but it's > >> not the best solution. I'd like to raise a bug in Jira but it's for > >> authorized users only. Is there another way to get it in? > >> > >> cheers, > >> j. > >> > >> On Thu, Jan 14, 2010 at 11:30 AM, Jamie McCrindle > >> wrote: > >>> > >>> Will post an issue. I'll see if I can submit a patch as well > >>> > >>> cheers, > >>> j. > >>> > >>> ps: I've cross posted to stackoverflow to see if the php geniuses over > >>> there have some ideas. > >>> > >>> On Thu, Jan 14, 2010 at 11:26 AM, Dejan Bosanac > >>> wrote: > >>>> > >>>> Hi Jamie, > >>>> > >>>> thanks for pointing to this issue. The best approach is to file a bug > in > >>>> project's Jira (http://fusesource.com/issues/browse/STOMP) and we'll > >>>> take it > >>>> from there (a patch that solves it would be even better). > >>>> > >>>> Cheers > >>>> -- > >>>> Dejan Bosanac - http://twitter.com/dejanb > >>>> > >>>> Open Source Integration - http://fusesource.com/ > >>>> ActiveMQ in Action - http://www.manning.com/snyder/ > >>>> Blog - http://www.nighttale.net > >>>> > >>>> > >>>> On Thu, Jan 14, 2010 at 12:09 PM, Jamie McCrindle > >>>> wrote: > >>>> > >>>>> Hi All, > >>>>> > >>>>> It appears that the ActiveMQ FuseSource Stomp PHP client can't handle > >>>>> messages larger than 1024 bytes. The code is as follows in Stomp.php: > >>>>> > >>>>> $rb = 1024; > >>>>> $data = ''; > >>>>> $end = false; > >>>>> > >>>>> do { > >>>>> $read = fread($this->_socket, $rb); > >>>>> if ($read === false) { > >>>>> $this->_reconnect(); > >>>>> return $this->readFrame(); > >>>>> } > >>>>> $data .= $read; > >>>>> if (strpos($data, "\x00") !== false) { > >>>>> $end = true; > >>>>> $data = rtrim($data, "\n"); > >>>>> } > >>>>> $len = strlen($data); > >>>>> } while ($len < 2 || $end == false); > >>>>> > >>>>> If I set $rb to a larger value e.g. 1048576, it consumes the whole > >>>>> message and works as expected. What appears to be happening is that > >>>>> the first 1024 bytes are read, the loop exit condition is not met and > >>>>> then the client hangs on the $read = fread($this->_socket, $rb); > line. > >>>>> > >>>>> I'm using: > >>>>> > >>>>> Mac OS X Leopard (yeah, I'll upgrade when I have more disk space... > >>>>> the irony is that by upgrading I save disk space... *sigh*) > >>>>> PHP 5.2.11 > >>>>> > >>>>> Let me know if I should publish this to the fusesource dev mailing > list > >>>>> instead > >>>>> > >>>>> cheers, > >>>>> j. > >>>>> > >>>> > >>> > > > > Rob Davies > > http://twitter.com/rajdavies > > I work here: http://fusesource.com > > My Blog: http://rajdavies.blogspot.com/ > > I'm writing this: http://www.manning.com/snyder/ > > > > > > > > > > > > > --001485f6db2edd3df5047d877613--