mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
getsockopt.2: Add SO_SPLICE source socket read and socket close behavior
Add select(2), poll(2), or kqueue(2) source socket semantics and close behavior. Reported by: Udip Pant <upant@netflix.com> Reviewed by: manpages (ziaee), markj Obtained from: OpenBSD MFC after: 3 days Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D51547
This commit is contained in:
parent
ebc6ff8db1
commit
122b2a3530
1 changed files with 9 additions and 0 deletions
|
|
@ -593,6 +593,15 @@ specified amount of time has elapsed since the initial call to
|
|||
If
|
||||
.Fa sp_fd
|
||||
is -1, the socket will be unspliced immediately.
|
||||
A successful
|
||||
.Xr select 2 ,
|
||||
.Xr poll 2 ,
|
||||
or
|
||||
.Xr kqueue 2
|
||||
operation testing the ability to read from the source socket indicates
|
||||
that the splicing has terminated and at least one byte is available for
|
||||
reading.
|
||||
When one of the sockets gets closed, splicing ends.
|
||||
.Pp
|
||||
When passed to
|
||||
.Fn getsockopt ,
|
||||
|
|
|
|||
Loading…
Reference in a new issue