users@grizzly.java.net

Connection Stability/Reconnector

From: Eric Faden <eric_at_techeminence.com>
Date: Thu, 14 Aug 2008 14:56:45 -0400

I am interested in using Grizzly to replace my current custom link
code. I was wondering how I would go about setting up a link level ping
protocol to attempt to detect link failure. I want to use this ping
protocol to bring the link down on "failure" and then reestablish it (so
I don't need to wait for TCP timeout). Anyone have suggestions on the
best way to do this? Basically I am trying to setup a server with a
bunch of clients. I want the server and the clients to periodically
send pings and then bring the link down if a ping hasn't been received
for some amount of time. The client should reconnect and the server
should just discard the connection. Thoughts?