Re: SO_SNDTIMEO: 2.4 kernel bugs

kuznet@ms2.inr.ac.ru
Sun, 18 Feb 2001 22:33:44 +0300 (MSK)


Hello!

> So the actual timeout would be 2 * SO_SNDTIMEO.

It will timeout if write of some page blocks for SO_SNDTIMEO.
If transmission of any page never takes more than SO_SNDTIMEO it never
times out.

You can think about sendfile() as subroutine doing:

for (;;) {
read(4K from fdin);
write(4K to fdout);
}

All the options apply to each read()/write() separetely, so that... alas.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/