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

Emmanuel Lecharny commented on DIRMINA-828:
-------------------------------------------

There is also one big flaw : if the header arives in two chunks (for instance, 
3 bytes and one byte), then it won't correctly be decoded.

You have to assume that the data may arrive one byte after the other, even if 
it's *very* unlikely.
                
> RFC1006 protocol codec
> ----------------------
>
>                 Key: DIRMINA-828
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-828
>             Project: MINA
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Francis ANDRE
>              Labels: features
>         Attachments: RFC1006CodecFactory.java, RFC1006Decoder.java, 
> RFC1006DecoderTest.java, RFC1006Encoder.java, RFC1006EncoderTest.java, 
> RFC1006Protocol.java, 
> org.apache.mina.filter.codec.rfc1006.RFC1006EncoderTest.txt
>
>
> Hi
> Here the files of the RFC1006 protocol codec for inclusion in the next 
> release of Mina.
> org.apache.mina.filter.codec.rfc1006.RFC1006Encoder
> org.apache.mina.filter.codec.rfc1006.RFC1006Decoder
> org.apache.mina.filter.codec.rfc1006.RFC1006CodecFactory
> org.apache.mina.filter.codec.rfc1006.RFC1006Protocol
> plus the JUnit files
> org.apache.mina.filter.codec.rfc1006.RFC1006DecoderTest
> org.apache.mina.filter.codec.rfc1006.RFC1006EncoderTest
> Rgds

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to