fix(protocol): classify TLS EOF before EINTR retry; harden current-ssl resolver; real TLS regression test

This commit is contained in:
2026-09-23 01:36:08 +02:00
parent c29bce54fc
commit 46dcefe218
4 changed files with 363 additions and 13 deletions
+10 -2
View File
@@ -146,8 +146,16 @@ class TestTLSBasic:
assert not missing, f"Missing files: {missing}"
assert not mismatches, f"Mismatched files: {mismatches}"
@pytest.mark.ci
def test_tls_with_multithreading(self, certs):
"""TLS + multithreading."""
"""TLS + multithreading + --sendfile.
Exercises the TLS/sendfile interaction end to end: with --sendfile the
sender must route the file body through the buffered TLS path rather
than raw sendfile(2) on the encrypted socket. The focused decision
guard lives in tests/test_protocol.c
(test_tls_sendfile_decision_uses_buffered_path).
"""
clean_dir(DEST_DIR)
with ServerManager() as server:
server.start(extra_args=[
@@ -156,7 +164,7 @@ class TestTLSBasic:
])
result, dur = run_client(
SOURCE_DIR, DEST_DIR,
flags=["--threads", "--tls",
flags=["--threads", "--sendfile", "--tls",
"--cert", certs["client_cert"], "--key", certs["client_key"],
"--ca", certs["ca"]],
port=server.port,