UDP problem
"이희승 (Trustin Lee)"
trustin at gmail.com
Mon Jan 10 00:36:28 EST 2011
Hi David,
I'd like to know if you don't observe the same problem when you write
the same test application.
On 11/16/2010 01:17 AM, dmontero wrote:
>
> Hi,
>
> I'm trying to use Netty to create my own UDP protocol. In that protocol
> there is a server and a lot of clients sending request to the server (like
> http applications).
>
> The first i tried was the QOTM sample and it works fine. The problem comes
> when i add a lot of request from client to server:
>
> DatagramChannel c = (DatagramChannel) b.bind(new InetSocketAddress(0));
> for (int i = 0; i< 3000; i++){
> c.write("QOTM?", new InetSocketAddress("localhost", 8082));
> }
>
> With the code above never arrive the 3000 request to the server same as
> never arrive the 3000 response to the client just arrive around 1700-2000 in
> both cases i think that is because the buffer is full sometimes and some
> packets are lost.
>
> Im almost sure that is the producer-consumer problem and im not sure that if
> i increment the buffer size my application is going to be ok all time or im
> only postpone the fail.
>
> Anyone knows how to solve or why happens this problem?
>
> Regards,
>
> David.
>
>
--
Trustin Lee, http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20110110/5dd0862e/attachment.bin
More information about the netty-users
mailing list