[sheepdog] [PATCH v3 0/3] fix embryonic connection

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Wed Sep 5 00:59:31 CEST 2012


At Tue,  4 Sep 2012 18:57:36 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> v3:
>  - always use time poll instead of keepalive
> 
> This patch set tries to solve tow hang problems:
>  1. blocking connect() might leave connection wait for unbounded period of
>     time
>  2. poll() might wait for unbounded period of time,  when 
>     a) header in send buffer is not acked
>     b) the remote node is crashed 
> 
> This two problems can be reproduced by refined 035.
> 
> Liu Yuan (3):
>   test: consoliate test 035 to test more bugs
>   net: fix embryonic connection handling in connect_to()
>   gateway: fix poll() hang
> 
>  lib/net.c       |   13 +++++++------
>  sheep/gateway.c |   24 +++++++++++++++++++-----
>  tests/035       |   25 ++++++++++---------------
>  tests/035.out   |   20 ++++++++++----------
>  tests/common.rc |   21 +++++++++++++++++++++
>  5 files changed, 67 insertions(+), 36 deletions(-)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list