Re: SO_SNDTIMEO: 2.4 kernel bugs

From: kuznet@ms2.inr.ac.ru
Date: Sun Feb 18 2001 - 12:24:35 EST


Hello!

> Unfortunately, I discovered a bug with SO_SNDTIMEO/sendfile():

None of the options apply to sendfile(). It is not socket level
operation. You have to use alarm for it.

BTW, if you have enough fast network, you probably can observe
that sendfile() is even not interrupted by signals. 8) But this
is possible to fix at least. BTW the same fix will repair SO_*TIMEO
partially, i.e. it will timeout after n*timeo, where n is an arbitrary
number not exceeding size/sndbuf.

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/



This archive was generated by hypermail 2b29 : Fri Feb 23 2001 - 21:00:17 EST