[jsr356-experts] Re: Pings and Pongs
- From: Greg Wilkins <
- Subject: [jsr356-experts] Re: Pings and Pongs
- Date: Fri, 13 Jul 2012 11:49:12 +1000
On 13 July 2012 11:10, Joe Walnes
> * Whatever the result of the streaming API discussion, we should offer
> equivalent methods for the ping/pong application date (e.g. chunking,
> streaming, whatever).
Pings and Pongs are control frames, so their payload size is limited
to 126 bytes. I think a streaming API for this would be overkill
and prone to overflows.
> * Most (but not all) applications don't care about implementing their own
> ping/pong rules. It should be easy for applications to use predefined
> ping/pong strategies (e.g. reply to pings from client, send heartbeat pings
> from server with timeout, etc), without having to duplicate code.
Developer advice, services and support
from the Jetty & CometD experts.