Re: [PATCH net] tcp: allow MSG_ZEROCOPY transmission also in CLOSE_WAIT state

2019-01-15 Thread David Miller
From: Willem de Bruijn Date: Thu, 10 Jan 2019 14:40:33 -0500 > From: Willem de Bruijn > > TCP transmission with MSG_ZEROCOPY fails if the peer closes its end of > the connection and so transitions this socket to CLOSE_WAIT state. > > Transmission in close wait state is acceptable. Other simila

Re: [PATCH net] tcp: allow MSG_ZEROCOPY transmission also in CLOSE_WAIT state

2019-01-11 Thread Eric Dumazet
On 01/10/2019 11:45 AM, Soheil Hassas Yeganeh wrote: > On Thu, Jan 10, 2019 at 2:40 PM Willem de Bruijn > wrote: >> >> From: Willem de Bruijn >> >> TCP transmission with MSG_ZEROCOPY fails if the peer closes its end of >> the connection and so transitions this socket to CLOSE_WAIT state. >> >>

Re: [PATCH net] tcp: allow MSG_ZEROCOPY transmission also in CLOSE_WAIT state

2019-01-10 Thread Soheil Hassas Yeganeh
On Thu, Jan 10, 2019 at 2:40 PM Willem de Bruijn wrote: > > From: Willem de Bruijn > > TCP transmission with MSG_ZEROCOPY fails if the peer closes its end of > the connection and so transitions this socket to CLOSE_WAIT state. > > Transmission in close wait state is acceptable. Other similar test

[PATCH net] tcp: allow MSG_ZEROCOPY transmission also in CLOSE_WAIT state

2019-01-10 Thread Willem de Bruijn
From: Willem de Bruijn TCP transmission with MSG_ZEROCOPY fails if the peer closes its end of the connection and so transitions this socket to CLOSE_WAIT state. Transmission in close wait state is acceptable. Other similar tests in the stack (e.g., in FastOpen) accept both states. Relax this tes