Downstream send delay?

hasty hasty at granbery.org
Mon Aug 30 13:02:30 EDT 2010


I'm porting an iPhone app to Android using Netty, and I'm experiencing some
strange performance issues. Basically, when I send a message through the
pipeline, it seems to pause at the end before actually going out on the
network. I added a LoggingHandler to the end of the pipeline to try to see
if it was anything I was doing:


08-30 12:33:31.196 I/MyLoginHandler( 8569): Client Connected
08-30 12:33:31.204 D/Netty   ( 8569): [id: 0x44885d48,
android_22a00000.mynet.local/192.168.1.237:0 => 0.0.0.0/0.0.0.0:0] WRITE:
com.myapp.communication.messages.LoginMessage at 448d1b70
08-30 12:33:31.204 I/MyClient( 8569): Asymmetric Encrypting Base Frame
08-30 12:33:31.243 I/SecurityManager( 8569): Connection ciphers created.
08-30 12:33:31.274 I/MyProtocolFrameEncoder( 8569): Encoding Base Frame
08-30 12:33:31.313 I/BaseMessage( 8569): Encoded message length: 258
08-30 12:33:31.313 D/Netty   ( 8569): [id: 0x44885d48,
android_22a00000.mynet.local/192.168.1.237:0 => 0.0.0.0/0.0.0.0:0]
WRITTEN_AMOUNT: 260
08-30 12:33:36.774 I/MyProtocolFrameDecoder( 8569): Decoding Base Frame
08-30 12:33:36.774 I/MyClient( 8569): Asymmetric Decrypting Base Frame
08-30 12:33:36.891 I/MyClient( 8569): Login Message Received

You can see there's a five second delay between sending a login message and
getting a login response; on the server this only took 65ms to process, and
the iPhone client hitting the same server has no such delay. Instead, it
appears that netty waited before actually sending the message. Is there some
trick to get netty to send messages as soon as they're put into the
pipeline?

Thanks,

Hasty
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Downstream-send-delay-tp5479135p5479135.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list