[sheepdog] [PATCH 1/2] sheep: set keepalive in all client socket fd
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Mon Jun 18 22:58:38 CEST 2012
At Wed, 13 Jun 2012 11:38:32 +0800,
Yunkai Zhang wrote:
>
> From: Yunkai Zhang <qiushu.zyk at taobao.com>
>
> We have set keepalive in cached socket fd, but uncached fd should also
> need to set this option. So I move set_keepalive() from get_sheep_fd()
> to connect_to().
>
> Signed-off-by: Yunkai Zhang <qiushu.zyk at taobao.com>
> ---
> include/net.h | 1 +
> lib/net.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++----
> sheep/sdnet.c | 47 +----------------------------------------------
> 3 files changed, 51 insertions(+), 50 deletions(-)
Applied these two patches, thanks!
Kazutaka
More information about the sheepdog
mailing list