Incomplete writes

Johnny Luong johnny.luong at trustcommerce.com
Fri May 6 15:37:46 EDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 05/06/2011 12:53 AM, Eugene wrote:
> Hi,
> 
> I'm really new in netty and trying to implement some sort of streaming
> server for some custom data records.
> 
> This is the relevant part of my implementation  http://pastie.org/1870815
> http://pastie.org/1870815 
> 
> I have it tested with fast sends, and I see difference between completed and
> sent. For instance, I have 5000 records sent, but on client side I get 4730
> only, and this is the same number as "completed". If I slow down writes it
> works fine (5000 completed), but my goal is to handle massive amount of
> data. 
> 
> Am I doing something completely wrong here or missing something important?
> 
> thx,
> --
> Eugene
> 
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Incomplete-writes-tp6336632p6336632.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
> 
> 

If the client app is not consuming the data fast enough from the stream,
then you might be blocked either by the internal queue that Netty uses
or at the TCP/IP stack as a result of the window being full.

Best,
Johnny
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJNxE4KAAoJENQfv1FjsMMvAdAQAMgYtXejF28U/EatUDLSQmjb
y4EbYT3KHbopjrCxu3mHZQXfhbtxcXX424o3CWFLfF8cm1b0FMrl6nze5PZh5bDK
vLLhS7eA7QICvaucADH3Dr1Eg8lzI/urP8toysPxusPa6PXkbnJ8o6gb6TxnVZyt
hERdU3ijvf9Fuig5Uuz8UG4bxsgWwOtg6WdxX3ARGrw129BZiCwMgcFG58qjCpvt
DcRUwczqPFRp9KpNRzS0Puc8WHhgJ0id9yDaQBGG79Qbs3ot8EOyL7IaUsbJBzJS
x10QA99NTVY4AHk8BmMkxPdfPJVU/yTZta6Q/2zJ/TuYedTVisHJeDB5+Sw9cIFO
VCiLyaouFS+CfWJbEjnZMoqGabyEwmipZp2dpNgmMh3wjRBrzbvE+hpfU5CXdC9I
Nb3MB8f4zcK4PsD8YxFszg32RAZVuodOrylFS3hCZiBetE/rYiGM9ekPZqqW2HxJ
FokDSKV4Xu5xYNvKYoM5SQgUzbF1oo5E5u1zjzUWJDUkdiog/TPSw4KlVZgPM1Sl
UEWUEh4rhR3m94uCrt1A7O17whq7ILR/HlF3gzFp1kk1mGJPhC7eDxGZdKLyeoel
XG+MurwUWihSzPOclylXWu/Ggz/vXgL46m0RkAlPi7My9YoqvVQoNvzIDUw0n7je
EmqCtXcc8apOWFq2qHuu
=OS//
-----END PGP SIGNATURE-----


More information about the netty-users mailing list