Skip to content

veb: support sendfile() syscall on FreeBSD - #21541

Merged
medvednikov merged 4 commits into
vlang:masterfrom
bakul:freebsd-sendfile
May 21, 2024
Merged

medvednikov merged 4 commits into
vlang:masterfrom
bakul:freebsd-sendfile

Conversation

@bakul

@bakul bakul commented May 20, 2024

Copy link
Copy Markdown
Contributor

Use sendfile() on FreeBSD in vlib/veb as well as vlib/x/vweb. This call API is somewhat different from the Linux one so fix up args and return the expected value on linux. Note that at least vlib/veb/tests/large_payload_test.v uses sendfile and succeeds. Use of sendfile can be manually verified by running the test under ktrace.

@medvednikov
medvednikov merged commit 9997ac4 into vlang:master May 21, 2024
@bakul
bakul deleted the freebsd-sendfile branch May 21, 2024 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants