You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "james strachan (JIRA)" <ji...@apache.org> on 2007/02/27 11:47:03 UTC

[jira] Moved: (AMQCPP-72) Incorect handling of message size in ByteArrayOutputStream::write

     [ https://issues.apache.org/activemq/browse/AMQCPP-72?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

james strachan moved AMQ-823 to AMQCPP-72:
------------------------------------------

          Component/s:     (was: CMS (C++ client))
    Affects Version/s:     (was: incubation)
                  Key: AMQCPP-72  (was: AMQ-823)
              Project: ActiveMQ C++ Client  (was: ActiveMQ)

> Incorect handling of message size in ByteArrayOutputStream::write
> -----------------------------------------------------------------
>
>                 Key: AMQCPP-72
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-72
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>         Environment: RHEL 4/32bit 
>            Reporter: Radek Sedmak
>         Assigned To: Nathan Mittler
>         Attachments: patch.txt
>
>   Original Estimate: 10 minutes
>  Remaining Estimate: 10 minutes
>
> when you are sending message via openwire protocol, ByteArrayOutputStream::write is called in certain moment ...
> when message size is greater then defaul CHUNK space is reallocated and there is "check for EOF offset".
>   
>    if( offset > bodySize )
>             expandBody() ;
>  but should be there 
>   if ( offset >= bodySize ) 
>             expandBody();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.