Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions