Thread (2 messages) 2 messages, 2 authors, 2018-03-07

Re: [PATCH net] tcp: purge write queue upon aborting the connection

flat view

From: David Miller <davem@davemloft.net>
Date: 2018-03-07 20:01:38

From: Soheil Hassas Yeganeh <redacted>
Date: Tue,  6 Mar 2018 17:15:12 -0500
From: Soheil Hassas Yeganeh <redacted>

When the connection is aborted, there is no point in
keeping the packets on the write queue until the connection
is closed.

Similar to a27fd7a8ed38 ('tcp: purge write queue upon RST'),
this is essential for a correct MSG_ZEROCOPY implementation,
because userspace cannot call close(fd) before receiving
zerocopy signals even when the connection is aborted.

Fixes: f214f915e7db ("tcp: enable MSG_ZEROCOPY")
Signed-off-by: Soheil Hassas Yeganeh <redacted>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Eric Dumazet <redacted>
Signed-off-by: Yuchung Cheng <redacted>
Applied and queued up for -stable, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help