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

Aaron Frueh updated ETCH-278:
-----------------------------

    Attachment: 0001-HotFix-for-EtchPacketizer-receive-of-multiple-packag.patch

Hi,

First: 
I added a couple Tests to reproduce the use cases
- Multiple Packages in One buffer
- Packages Split between Multiple Buffers
- One Package Split between more than two Buffers
- Corrupted Header SIG
- Corrupted Header SIG multiple Packages (Buffer in a continues "fault" state)

These Tests will fail if the packetizer can't handle these cases.

Second:
I replaced my Hotfix with an updated Version, which works for above mentioned 
Test-Cases. As said before, they have been done quick and may need some 
structural changes.






> EtchPacketizer isn't able to receive multiple Packages in one Buffer
> --------------------------------------------------------------------
>
>                 Key: ETCH-278
>                 URL: https://issues.apache.org/jira/browse/ETCH-278
>             Project: Etch
>          Issue Type: Bug
>          Components: binding-cpp
>    Affects Versions: 1.3.0
>            Reporter: Aaron Frueh
>            Priority: Critical
>         Attachments: 
> 0001-HotFix-for-EtchPacketizer-receive-of-multiple-packag.patch, 
> 0001-HotFix-for-EtchPacketizer-receive-of-multiple-packag.patch
>
>
> The packetizer should be able to receive multiple Etch-Packages within one 
> buffer. (see also Etch-C-Binding)
> This can happen if the socket-receive is somehow blocked or delayed and the 
> internal socket buffer contains multiple packages.



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

Reply via email to