Messages in this thread | | | Date | Mon, 29 Nov 2010 15:32:38 +0500 | Subject | Splice: splice_direct_to_actor() and randomly data drop | From | Марк Коренберг <> |
| |
Seeing implementation of splice_direct_to_actor(), I decide, that "random data drop" can appear if we alrady have done splice_to, but have problems with splice_from.
1. Why not to use tee() instead of splice_to ? and after all operations copmleted successfully, just consume data from IN to /dev/null :) anyhow.
It will allow to splice between ANY file descriptors, not between "regular file/block device" and ANY.
2. After that, in do_splice we might call do_splice_direct() if both file descriptors are not pipe.
-- Segmentation fault
| |