Thank you Roland.

I am now looking into 
http://doc.akka.io/docs/akka/snapshot/scala/io-codec.html to build the 
framing protocol.

On Wednesday, January 15, 2014 12:01:38 AM UTC-8, rkuhn wrote:
>
> TCP is stream oriented, not datagram oriented (that would be UDP). This 
> means that the chunks which you receive are arbitrary prefixes of the 
> respective rest of the stream (i.e. “packets” can be cut at any byte 
> boundary). If you only send small TCP writes (<1480 bytes) with enough time 
> between them, then each write may (!) be transferred in its own IP 
> datagram—but that is not guaranteed. Therefore you’ll have to apply some 
> kind of framing protocol (like the DelimiterFraming stage) on top of raw 
> TCP.
>
> Regards,
>
> Roland
>
> 15 jan 2014 kl. 05:15 skrev Jonathan Zernik <[email protected]<javascript:>
> >:
>
> I have a program that makes a TCP connection almost exactly like the 
> example here, 
> http://doc.akka.io/docs/akka/snapshot/scala/io-tcp.html#Connecting
>
> Most messages that are sent to me are received correctly 
> as  akka.util.ByteString. However, large messages above a certain size get 
> cut off. I think they are split up into several smaller messages.
>
> How do I handle large incoming messages? Is there a configuration option 
> that I can change? Do I have to do some kind of buffering?
>
> -- 
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
>
> *Dr. Roland Kuhn*
> *Akka Tech Lead*
> Typesafe <http://typesafe.com/> – Reactive apps on the JVM.
> twitter: @rolandkuhn
> <http://twitter.com/#!/rolandkuhn>
>  
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to