HomeFreeBSD

tests/sendfile: test operation on unix/stream socket

Description

tests/sendfile: test operation on unix/stream socket

Although there are already multiple tests in the tests collection
that utilize sendfile(2) support over unix/stream socket, they all
don't exercise the asynchronous part of the operation. This test
framework, however, uses a trick to toggle true async operation and
guarantee that pr_ready method of unix/stream is also tested.

Reviewed by: chs
Differential Revision: https://reviews.freebsd.org/D45055

Details

Provenance
glebiusAuthored on May 3 2024, 2:45 PM
Reviewer
chs
Differential Revision
D45055: tests/sendfile: test operation on unix/stream socket
Parents
rGc368d3f20fc0: tests/sendfile: factor out tcp_socketpair()
Branches
Unknown
Tags
Unknown