kernel-hacking-2024-linux-s.../net/sctp
Thomas Graf cd4fcc704f sctp: ABORT if receive, reassmbly, or reodering queue is not empty while closing socket
Trigger user ABORT if application closes a socket which has data
queued on the socket receive queue or chunks waiting on the
reassembly or ordering queue as this would imply data being lost
which defeats the point of a graceful shutdown.

This behavior is already practiced in TCP.

We do not check the input queue because that would mean to parse
all chunks on it to look for unacknowledged data which seems too
much of an effort. Control chunks or duplicated chunks may also
be in the input queue and should not be stopping a graceful
shutdown.

Signed-off-by: Thomas Graf <tgraf@infradead.org>
Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-07-08 09:53:08 -07:00
..
associola.c sctp: stop pending timers and purge queues when peer restart asoc 2011-05-31 15:29:17 -07:00
auth.c
bind_addr.c sctp: Fix build failure. 2011-05-21 02:10:23 -04:00
chunk.c
command.c
debug.c
endpointola.c
input.c
inqueue.c
ipv6.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2011-05-20 13:43:21 -07:00
Kconfig
Makefile
objcnt.c
output.c
outqueue.c sctp: Enforce retransmission limit during shutdown 2011-07-07 14:08:44 -07:00
primitive.c
probe.c
proc.c net: convert %p usage to %pK 2011-05-24 01:13:12 -04:00
protocol.c net: refine {udp|tcp|sctp}_mem limits 2011-07-07 00:27:05 -07:00
sm_make_chunk.c
sm_sideeffect.c sctp: Enforce retransmission limit during shutdown 2011-07-07 14:08:44 -07:00
sm_statefuns.c sctp: Enforce retransmission limit during shutdown 2011-07-07 14:08:44 -07:00
sm_statetable.c sctp: Enforce retransmission limit during shutdown 2011-07-07 14:08:44 -07:00
socket.c sctp: ABORT if receive, reassmbly, or reodering queue is not empty while closing socket 2011-07-08 09:53:08 -07:00
ssnmap.c
sysctl.c
transport.c
tsnmap.c
ulpevent.c sctp: ABORT if receive, reassmbly, or reodering queue is not empty while closing socket 2011-07-08 09:53:08 -07:00
ulpqueue.c