Skip to content

fast_io.rs: use sendfile or splice if copy_file_range is not supported #443

@oech3

Description

@oech3

copy_file_range is limited e.g. copy_file_range to pipe is impossible. In the case, we should try extending stdout's pipe size by fcntl and splice.

Moreover, mmap should be done for memfd to prevent SIGBUS when input was truncated.
@dspinellis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions