users@grizzly.java.net

Re: Socket TCP/IP KeepAlive

From: Ming Qin <mingqin1_at_yahoo.com>
Date: Thu, 1 Apr 2010 08:28:50 -0700 (PDT)

Oleksiy Stashok:

 BTW, I've added keepAlive support to 2.0 branch

  Can you elaborate with implementation of keepAlive in 2.0 branch ?


Ming Qin
Cell Phone 858-353-2839

--- On Wed, 3/31/10, Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM> wrote:

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Subject: Re: Socket TCP/IP KeepAlive
To: users_at_grizzly.dev.java.net
Date: Wednesday, March 31, 2010, 8:51 AM

Hi,
correct.We'd need to add it the same way we have linger, soTimeout and other socket config values.BTW, I've added keepAlive support to 2.0 branch.
WBR,Alexey.
On Mar 31, 2010, at 17:42 , Ming Qin wrote:
Hi :

  Just like to validate my thoughts on implementing Socket TCP/IP KeepAlive for Grizzly.

  Since Java.net.SocketOptions.SO_KEEPALIVE can let TCP automatically sends a keepalive probe to the peer. The probe is a TCP segment to which peer must respond.