Author pablogsal
Recipients pablogsal, vstinner
Date 2020-08-24.17:30:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I don't recall the subtle differences between sendfile() and splice().

Basically, splice() is specialized for pipes:

splice() only works if one of the file descriptors refer to a pipe. So you can use for e.g. socket-to-pipe or pipe-to-file without copying the data into userspace. But you can't do file-to-file copies with it.

sendfile() only works if the source file descriptor refers to something that can be mmap()ed (i.e. mostly normal files) and before 2.6.33 the destination must be a socket.
Date User Action Args
2020-08-24 17:30:18pablogsalsetrecipients: + pablogsal, vstinner
2020-08-24 17:30:18pablogsalsetmessageid: <>
2020-08-24 17:30:18pablogsallinkissue41625 messages
2020-08-24 17:30:18pablogsalcreate