摘要 |
<p>The present invention discloses a method for state changing of stream control transmission protocol, comprising: a local end stream control transmission protocol (SCTP) determining that there are unsent data in a sending buffer and the receiving window of the opposite end SCTP is larger than or equal to the length of the first unsent data currently after the local end SCTP association into a SHUTDOWN-PENDING state, then the local end SCTP sending the first unsent data to the opposite end SCTP; closing SCTP association if no response is received from the opposite end SCTP. With the present invention, when the local end SCTP receives a SHUTDOWN request from the upper layer user to close an association, if there is data to be sent to the opposite end SCTP and the data cannot be sent successfully for a long time because the receiving buffer of the opposite end SCTP is small or because of other reasons, the association can be used again quickly.</p> |