Alexander Christian wrote:
On Thu, 13 Nov 2008 14:11:23 +0100, Emmanuel Lecharny <[EMAIL PROTECTED]>
wrote:
Well, you are experiencing UDP packet less, which is something quite
usual with UDP, as it's not a reliable transport.
Hmm, I know, but I thought MINA would handle this somehow ;-(
Well, the UDP nature is to be unreliable. If you want a reliable
transport, just use TCP. MINA can't do anything about that...
The thing is to determinate why the packets are lost.
Can you check that ?
(http://www.29west.com/docs/THPM/udp-buffer-sizing.html explains how to
do that)
*read* I increased not only the receive buffer size, but also the read
buffer size to 10k. Not my sample is working.
But it's not clear to me why a 2406 byte paket needs a buffer >=4k (tested
also with 4096, worked quite well).
in fact, it also depends on the underlying OS. You can limit the max UDP
packet size.
Is there a way to automatically split up big messages before/while sending
so that even a giant message can be received with small buffer sizes?!
No. You will have to write a filter to do that. It could be an
interesting filter to add to MINA base code though...
Because the library I'm writing has no fixed message size. It depends on
the size of the objects the user wants to transfer
Is there any reason for using UDP ?
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org