History log of /src/tests/sys/kern/ssl_sendfile.c (Results 1 – 7 of 7)
Revision Date Author Comments
# ded881f9 10-Mar-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern/ssl_sendfile: fix 'random' and 'basic' flakyness

The read of c.sbytes needs to be synchronized with mutex. The problem was
fixed for 'truncate' and 'grow' with 8a9508563542, but these tw

tests/kern/ssl_sendfile: fix 'random' and 'basic' flakyness

The read of c.sbytes needs to be synchronized with mutex. The problem was
fixed for 'truncate' and 'grow' with 8a9508563542, but these two suffer
from the same problem. Provide require_sbytes(), a locked wrapper around
ATF_REQUIRE() to reduce copy and paste.

Submitted by: olivier
Differential Revision: https://reviews.freebsd.org/D55781

show more ...


# 35b976c6 10-Mar-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern/ssl_sendfile: reduce copy & paste

Provide sendme_locked_wait() for a common pattern. Not functional change.


# 8a950856 27-Jan-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern: make ssl_sendfile:truncate and ssl_sendfile:grow less flaky

First problem is a trivial race that the client thread doesn't see updated
c.sbytes. Second problem applies only to the trunc

tests/kern: make ssl_sendfile:truncate and ssl_sendfile:grow less flaky

First problem is a trivial race that the client thread doesn't see updated
c.sbytes. Second problem applies only to the truncate test. On a machine
with huge default buffer sizes, there is a chance that sendfile(2) will
fill both buffers with amount of data that is larger than the size we plan
to truncate. To minimise chances for this scenario, increase file size
and truncate it less aggressively, also try to decrease buffer sizes.

show more ...


# 37d11fde 21-Jan-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern: add test for SSL_sendfile()


# 8a950856 27-Jan-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern: make ssl_sendfile:truncate and ssl_sendfile:grow less flaky

First problem is a trivial race that the client thread doesn't see updated
c.sbytes. Second problem applies only to the trunc

tests/kern: make ssl_sendfile:truncate and ssl_sendfile:grow less flaky

First problem is a trivial race that the client thread doesn't see updated
c.sbytes. Second problem applies only to the truncate test. On a machine
with huge default buffer sizes, there is a chance that sendfile(2) will
fill both buffers with amount of data that is larger than the size we plan
to truncate. To minimise chances for this scenario, increase file size
and truncate it less aggressively, also try to decrease buffer sizes.

show more ...


# 37d11fde 21-Jan-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern: add test for SSL_sendfile()


# 37d11fde 21-Jan-2026 Gleb Smirnoff <glebius@FreeBSD.org>

tests/kern: add test for SSL_sendfile()