On 2001-04-17 14:46:48 +0000, Dan Kegel wrote:
> Check out the thread
> http://boudicca.tux.org/hypermail/linux-kernel/2001week16/0345.html
> ...
> http://boudicca.tux.org/hypermail/linux-kernel/2001week16/0468.html
>
> proftpd was misusing sendfile on linux, but it only caused trouble
> infrequently.
>
> Looks like a stress test might have caught this. Don't know if
> dkftpbench is up to the task, but anyone writing an ftp server test
> suite should take note.
Thanks for the pointer! I hadn't considered the problem of actually
verifying that the data returned was correct. I'll keep that in mind!
In my basic hand testing I do actually do MD5 sums to compare the
original and downloaded files. In a server test this could be done the
same way - although probably not on every file for a load test.
Hmm... perhaps I should add a check for sendfile() in oftpd and use that
when, well, sending a file....
Shane