Because you commented out the line that keeps your program from exiting while it's still transferring data:
// Wait until the connection is closed. //f.channel().closeFuture().sync(); Once you uncomment it, of course the program won't exit. See my answer to another recent thread in the last hour on how to solve that. BTW, this line suggests you're doing development and running code you're developing *as root???* Don't do that. Ever. Seriously. One accidental write to some part of your OS and you'll be reinstalling. String theSrcFilePath = "/root/10MB_File.dat"; -Tim -- You received this message because you are subscribed to the Google Groups "Netty discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/netty/2ba42783-6a6f-462e-89df-4be44ac1368f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
