On Sat, Nov 28, 2026 at 4:27 PM Samuel Thibault <[email protected]> wrote: > > Could we instead cap the request size and return the result of a single > > RPC > > as a short write? > > Mmm, yes that can be done and won't hurt performance. Event for > non-append mode (offset is specified), writes are supposed to be atomic > against threads, so if it's not, the split should be explicited through > a short write.
That would be much better indeed. > To be noted: we need the same kind of change for _hurd_fd_read. Short > reads might be interpreted by applications as an end of file, but posix > clearly says that short reads can happen on interruptions, sockets and > pipes, so I'd say we should be fine with it. It's certainly best practice for applications not to second-guess anything about a reason for a short read; only 0 suggests reaching EOF. Sergey
