Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller <davem@xxxxxxxxxxxxx>: On Mon, 1 Jul 2024 13:48:49 -0400 you wrote: > As David Laight noticed, > > "In a multithreaded program it is reasonable to have a thread blocked in > accept(). With TCP a subsequent shutdown(listen_fd, SHUT_RDWR) causes > the accept to fail. But nothing happens for SCTP." > > sctp_disconnect() is eventually called when shutdown a listen socket, > but nothing is done in this function. This patch sets RCV_SHUTDOWN > flag in sk->sk_shutdown there, and adds the check (sk->sk_shutdown & > RCV_SHUTDOWN) to break and return in sctp_accept(). > > [...] Here is the summary with links: - [net-next] sctp: cancel a blocking accept when shutdown a listen socket https://git.kernel.org/netdev/net-next/c/cda91d5b911a You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html