summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/accept.2
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2002-05-08 18:19:01 +0000
committersilby <silby@FreeBSD.org>2002-05-08 18:19:01 +0000
commit2f7396a7470b0c2483daaa77ea1e5b807c402056 (patch)
tree16cbd07962cc2df5f9ccdc0f03f5119a200132e7 /lib/libc/sys/accept.2
parentf37958699205ff98449f3e2190be6f5499543446 (diff)
downloadFreeBSD-src-2f7396a7470b0c2483daaa77ea1e5b807c402056.zip
FreeBSD-src-2f7396a7470b0c2483daaa77ea1e5b807c402056.tar.gz
Some updates to mention accept filters and how
listen queues work in a syncache world. MFC after: 3 days
Diffstat (limited to 'lib/libc/sys/accept.2')
-rw-r--r--lib/libc/sys/accept.25
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2
index 06b0664..aac5024 100644
--- a/lib/libc/sys/accept.2
+++ b/lib/libc/sys/accept.2
@@ -115,6 +115,10 @@ request and not implying confirmation.
Confirmation can be implied by a normal read or write on the new
file descriptor, and rejection can be implied by closing the
new socket.
+.Pp
+For some applications, performance may be enhanced by using an
+.Xr accept_filter 9
+to pre-process incoming connections.
.Sh RETURN VALUES
The call returns \-1 on error. If it succeeds, it returns a non-negative
integer that is a descriptor for the accepted socket.
@@ -151,6 +155,7 @@ A connection arrived, but it was closed while waiting
on the listen queue.
.El
.Sh SEE ALSO
+.Xr accept_filter 9 ,
.Xr bind 2 ,
.Xr connect 2 ,
.Xr getpeername 2 ,
OpenPOWER on IntegriCloud