Page MenuHomeFreeBSD

linux sendfile: Fix handling of non-blocking sockets
Needs ReviewPublic

Authored by markj on Tue, Nov 5, 1:59 AM.
Tags
None
Referenced Files
F101965752: D47447.diff
Tue, Nov 5, 9:45 PM
F101947609: D47447.diff
Tue, Nov 5, 5:43 PM
Unknown Object (File)
Tue, Nov 5, 2:00 AM
Subscribers

Details

Reviewers
glebius
dchagin
Summary

FreeBSD sendfile() may perform a partial transfer and return EAGAIN if
the socket is non-blocking. Linux sendfile expects no error in this
case, so squash EAGAIN.

PR: 282495

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60391
Build 57275: arc lint + arc unit

Event Timeline

markj requested review of this revision.Tue, Nov 5, 1:59 AM
sys/compat/linux/linux_socket.c
2596

This comes from commit 4f9fac78d4da6, but I don't really understand it: what exactly is triggering ENOBUFS?