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

2018-03-07 Thread David Miller
From: Soheil Hassas Yeganeh Date: Tue, 6 Mar 2018 17:15:12 -0500 > From: Soheil Hassas Yeganeh > > 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'), >

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

2018-03-06 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh 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 cann