[jboss-jira] [JBoss JIRA] Commented: (JGRP-1000) COMPRESS corrupts some messages

Dennis Reed (JIRA) jira-events at lists.jboss.org
Thu Jun 25 17:28:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/JGRP-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12473830#action_12473830 ] 

Dennis Reed commented on JGRP-1000:
-----------------------------------

If I'm reading the RFCs and the compressed data correctly, the size of the compressed message is:

    ZLIB data: - 6 bytes (no DICTID)
    Compressed data - worst case is original size plus 5 bytes per 32K block

So the maximum buffer size needed would be something like: length + ( 5 * ( length / 32768 ) ) + 11
(the / is integer division)

References:
http://www.isi.edu/in-notes/rfc1950.txt
http://www.isi.edu/in-notes/rfc1951.txt

> COMPRESS corrupts some messages
> -------------------------------
>
>                 Key: JGRP-1000
>                 URL: https://jira.jboss.org/jira/browse/JGRP-1000
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 2.4.5
>            Reporter: Dennis Reed
>            Assignee: Dennis Reed
>
> COMPRESS.down() stores the compressed message in a temporary buffer the same size as the original message.
> If the compressed size of a message is larger than the original, then part of the message is lost, with no errors reported.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list