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

2016-06-09 Thread Sergei Shtylyov
Hello. On 6/9/2016 2:22 PM, 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 least when we use ss or

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

2016-06-09 Thread Marcelo Ricardo Leitner
On Thu, Jun 09, 2016 at 07:22:16PM +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

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

2016-06-09 Thread Xin Long
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 least when we use ss or netstat to dump, we can get a more exact informa