From: Anmol Sarma <me@anmolsarma.in>
To: mtk.manpages@gmail.com
Cc: netdev@vger.kernel.org, davem@davemloft.net,
linux-man@vger.kernel.org, Anmol Sarma <me@anmolsarma.in>
Subject: [PATCH] socket.7: Clarify that poll() and select() are affected by SO_RCVLOWAT
Date: Fri, 15 Jun 2018 23:08:59 +0530 [thread overview]
Message-ID: <20180615173859.8357-1-me@anmolsarma.in> (raw)
Signed-off-by: Anmol Sarma <me@anmolsarma.in>
---
man7/socket.7 | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/man7/socket.7 b/man7/socket.7
index b1aebfae2..65532bc49 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -777,17 +777,20 @@ fails with the error
.B SO_RCVLOWAT
is changeable
only since Linux 2.4.
-The
+In versions of Linux prior to 2.6.28, the
.BR select (2)
and
.BR poll (2)
-system calls currently do not respect the
+system calls did not respect the
.B SO_RCVLOWAT
-setting on Linux,
-and mark a socket readable when even a single byte of data is available.
-A subsequent read from the socket will block until
+setting. Since Linux 2.6.28,
+.BR select (2)
+and
+.BR poll (2)
+will not mark a socket readable until
.B SO_RCVLOWAT
bytes are available.
+.\" Commit c7004482e8dcb7c3c72666395cfa98a216a4fb70
.\" See http://marc.theaimsgroup.com/?l=linux-kernel&m=111049368106984&w=2
.\" Tested on kernel 2.6.14 -- mtk, 30 Nov 05
.TP
--
2.17.1
reply other threads:[~2018-06-15 17:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180615173859.8357-1-me@anmolsarma.in \
--to=me@anmolsarma.in \
--cc=davem@davemloft.net \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).