SPLICE_F_MORE More data will be coming in a subsequent splice.
This is a helpful hint when the fd_out refers to a
socket (see also the description of MSG_MORE in
send(2), and the description of TCP_CORK in tcp(7))
Will be a useful guideline for network sending daemons.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
printf_verbose("splice chan to pipe offset %lu\n",
(unsigned long)offset);
ret = splice(pair->channel, &offset, thread_pipe[1], NULL,
printf_verbose("splice chan to pipe offset %lu\n",
(unsigned long)offset);
ret = splice(pair->channel, &offset, thread_pipe[1], NULL,
+ len, SPLICE_F_MOVE | SPLICE_F_MORE);
printf_verbose("splice chan to pipe ret %ld\n", ret);
if (ret < 0) {
perror("Error in relay splice");
goto write_error;
}
ret = splice(thread_pipe[0], NULL, pair->trace, NULL,
printf_verbose("splice chan to pipe ret %ld\n", ret);
if (ret < 0) {
perror("Error in relay splice");
goto write_error;
}
ret = splice(thread_pipe[0], NULL, pair->trace, NULL,
+ ret, SPLICE_F_MOVE | SPLICE_F_MORE);
printf_verbose("splice pipe to file %ld\n", ret);
if (ret < 0) {
perror("Error in file splice");
printf_verbose("splice pipe to file %ld\n", ret);
if (ret < 0) {
perror("Error in file splice");