jsr356-experts@websocket-spec.java.net

[jsr356-experts] Re: Pings and Pongs

From: Mark Thomas <mark_at_homeinbox.net>
Date: Sun, 05 Aug 2012 14:17:20 +0100

On 05/08/2012 11:59, Joe Walnes wrote:
>
>
> On Sun, Aug 5, 2012 at 4:05 AM, Mark Thomas <mark_at_homeinbox.net
> <mailto:mark_at_homeinbox.net>> wrote:
>
> On 13/07/2012 03:10, Joe Walnes wrote:
>
> > * 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. Maybe this is a vendor specific feature - or maybe it
> > could be implemented in user-space with a Filter equivalent for the
> > WebSockets.
>
> I'd expect the implementation to provide a default implementation that
> applications could override if they wanted to.
>
>
> Which begs the question, what should the default implementation be?

How about:
- echo ping with pong
- ping every x seconds with default x == -1 meaning never.

Mark