Re: [PATCH net] tcp: do not report TCP_CM_INQ of 0 for closed connections

2019-03-06 Thread David Miller
From: Soheil Hassas Yeganeh Date: Wed, 6 Mar 2019 13:01:36 -0500 > From: Soheil Hassas Yeganeh > > Returning 0 as inq to userspace indicates there is no more data to > read, and the application needs to wait for EPOLLIN. For a connection > that has received FIN from the remote peer, however, t

[PATCH net] tcp: do not report TCP_CM_INQ of 0 for closed connections

2019-03-06 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh Returning 0 as inq to userspace indicates there is no more data to read, and the application needs to wait for EPOLLIN. For a connection that has received FIN from the remote peer, however, the application must continue reading until getting EOF (return value of 0 from