idea of sending ping on WRITER_IDLE state
이희승 (Trustin Lee)
trustin at gmail.com
Fri Aug 26 00:04:47 EDT 2011
Hi,
Let me assume that you are referring to the uptime example.
By writing a new ping message, writer becomes active due to the outbound traffic generated by itself. Because the uptime client does not send any message but the ping messages, the writer will become idle soon, and then another new ping message will be written. (i.e. sending a ping message periodically)
HTH
--
Trustin Lee (http://gleamynode.net/)
On Tuesday, August 16, 2011 at 10:09 PM, kohowski wrote:
> Greetings all!
>
> I would appreciate if someone could clarify the idea of sending ping on
> WRITER_IDLE state. I was looking through the example given in the javadoc
> for IdleStateHandler class.. and stumbled at the point of ".writer (new
> PingMessage())".
>
> I wonder how sending ping can help or resolve the situation of idle writer?
>
> Thanks in advance!
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/idea-of-sending-ping-on-WRITER-IDLE-state-tp6691240p6691240.html
> Sent from the Netty User Group mailing list archive at Nabble.com (http://Nabble.com).
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org (mailto:netty-users at lists.jboss.org)
> https://lists.jboss.org/mailman/listinfo/netty-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110826/30929862/attachment.html
More information about the netty-users
mailing list