Re: [PATCH net-next] sctp: sctp should change socket state when shutdown is received

2016-06-01 Thread Xin Long
On Thu, Jun 2, 2016 at 5:40 AM, Marcelo Ricardo Leitner wrote: > On Thu, Jun 02, 2016 at 03:38:45AM +0800, Xin Long wrote: >> Now sctp doesn't change socket state upon shutdown reception. It changes >> just the assoc state, even though it's a TCP-style socket. >> >> For some cases, if we really ne

Re: [PATCH net-next] sctp: sctp should change socket state when shutdown is received

2016-06-01 Thread Marcelo Ricardo Leitner
On Thu, Jun 02, 2016 at 03:38:45AM +0800, Xin Long wrote: > Now sctp doesn't change socket state upon shutdown reception. It changes > just the assoc state, even though it's a TCP-style socket. > > For some cases, if we really need to check sk->sk_state, it's necessary to > fix this issue, at leas