qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Sokolov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-560) Failing to transfer messages more than 4kB via AMQPS
Date Wed, 30 Apr 2014 12:45:20 GMT

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

Denis Sokolov commented on PROTON-560:
--------------------------------------

Ken, you will laugh, but it is me again. 
The main issue wasn't the incorrect size. The main issue is that we overwrite new allocated
memory with garbage, because _*data*_ pointer points to released memory and we use it here:
{noformat}
      if (ssl->in_count > 0 && data != ssl->inbuf)
        memmove( ssl->inbuf, data, ssl->in_count );
{noformat}

Correct fix looks like that (last string):
{noformat}
                ssl->in_size = max_frame;
                memmove( newbuf, ssl->inbuf, ssl->in_count );
                free( ssl->inbuf );
                ssl->inbuf = newbuf;
                data = ssl->inbuf;
{noformat}

And Margarita have pointed to that string.

> Failing to transfer messages more than 4kB via AMQPS
> ----------------------------------------------------
>
>                 Key: PROTON-560
>                 URL: https://issues.apache.org/jira/browse/PROTON-560
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.6
>         Environment: Fedora 64bit
>            Reporter: Margarita
>            Assignee: Ken Giusti
>             Fix For: 0.7
>
>
> We are using qpid-proton to transfer messages via SSL (AMQPS). While creating messages
larger than 4 kB we get error SSL Failure[-2]: Unknown Error.
> Does qpid-proton handle large message?



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

Mime
View raw message