Re: [PATCH V4 net-next 1/2] tcp: send in-queue bytes in cmsg upon read

2018-05-01 Thread David Miller
From: Soheil Hassas Yeganeh Date: Tue, 1 May 2018 15:39:15 -0400 > Add the TCP_INQ socket option to TCP. When this socket > option is set, recvmsg() relays the number of bytes available > on the socket for reading to the application via the > TCP_CM_INQ control message. Applied.

[PATCH V4 net-next 1/2] tcp: send in-queue bytes in cmsg upon read

2018-05-01 Thread Soheil Hassas Yeganeh
From: Soheil Hassas Yeganeh Applications with many concurrent connections, high variance in receive queue length and tight memory bounds cannot allocate worst-case buffer size to drain sockets. Knowing the size of receive queue length, applications can optimize how they allocate buffers to read f