All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Yongjun <yjwei@cn.fujitsu.com>
To: linux-sctp@vger.kernel.org
Subject: Re: [PATCH] sctp: Fix to start T5-shutdown-guard timer while enter
Date: Tue, 16 Sep 2008 09:48:54 +0000	[thread overview]
Message-ID: <48CF8106.4050008@cn.fujitsu.com> (raw)
In-Reply-To: <48C0837E.3060304@cn.fujitsu.com>

Hi Vlad:

Vlad Yasevich wrote:
> Wei Yongjun wrote:
>   
>> RFC 4960: Section 9.2
>> The sender of the SHUTDOWN MAY also start an overall guard timer
>> 'T5-shutdown-guard' to bound the overall time for the shutdown
>> sequence.  At the expiration of this timer, the sender SHOULD abort
>> the association by sending an ABORT chunk.  If the 'T5-shutdown-
>> guard' timer is used, it SHOULD be set to the recommended value of 5
>> times 'RTO.Max'.
>>
>> The timer 'T5-shutdown-guard' is used to counter the overall time
>> for shutdown sequence, and it's start by the sender of the SHUTDOWN.
>> So timer 'T5-shutdown-guard' should be start when we send the first
>> SHUTDOWN chunk and enter the SHUTDOWN-SENT state, not start when we
>> receipt of the SHUTDOWN primitive and enter SHUTDOWN-PENDING state.
>>
>> If 'T5-shutdown-guard' timer is start at SHUTDOWN-PENDING state, the
>> association may be ABORT while data is still transmitting.
>>     
>
> Hi Wei
>
> You missed the autoclose case which would have been very easy to test
> had you run the regressions test from the lksctp-tools package.
>
> In the future please run those tests and feel free to add tests there
> to enhance our test matrix.
>
> I'll fix it up this time.  Thanks
>   
  Sorry for my stupid mistake. I'll do the regressions test next time 
when I make patchs.

  I had a look at all the place used 
SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD, may be following lines in 
sctp_sf_shutdown_pending_abort() and 
sctp_sf_shutdown_pending_prm_abort() become useless after this patch:(T5 
time is invalid and not start in SHUTDOWN_PENDING state)
------------------------------------------------------
2080         sctp_add_cmd_sf(commands, SCTP_CMD_TIMER_STOP,
2081                         SCTP_TO(SCTP_EVENT_TIMEOUT_T5_SHUTDOWN_GUARD));
------------------------------------------------------
 So, If you want to fix this patch, you may also need to delete those 
useless codes.

 Thanks.



      parent reply	other threads:[~2008-09-16  9:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05  0:55 [PATCH] sctp: Fix to start T5-shutdown-guard timer while enter SHUTDOWN-SENT Wei Yongjun
2008-09-15 15:40 ` [PATCH] sctp: Fix to start T5-shutdown-guard timer while enter Vlad Yasevich
2008-09-16  9:48 ` Wei Yongjun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48CF8106.4050008@cn.fujitsu.com \
    --to=yjwei@cn.fujitsu.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.