From: Eric Wong Date: 2018-08-20T19:48:00+00:00 Subject: [ruby-core:88576] Re: [Ruby trunk Feature#15006] [PATCH] io.c: use copy_file_range with every types of files jean.boussier@gmail.com wrote: > However from my understanding, contrary to `sendfile` and > `splice`, `copy_file_range` has no file type restriction, it > should be able to copy from and to sockets and pipes just > fine. That is incorrect, copy_file_range requires both source and destination as regular files: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/read_write.c?h=v4.18#n1562 Did you try running "make test-all" with your patch? It fails test/ruby/test_io.rb::test_copy_stream_megacontent_nonblock Unsubscribe: