[lkml]   [1997]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: setsockopt() and SO_RCVTIMEO (2.1.21)
> I am having trouble using the SO_RCVTIMEO option at the socket layer with
> setsockopt(2). I am using kernel 2.1.21. The error I recieve,
> ENOPROTOPT, is apparently originating at ../src/linux/net/core/sock.c in
> sock_setsockopt().

SO_RCVTIMEO is read only. See POSIX 1003.1g draft 6.4.

> Does anyone know a way around this? Could I perhaps set the timeout at
> the TCP layer instead? Should I expect this option to be supported in the
> kernel anytime soon?

Not enough uses the ability to set it to justify the performance hit to
every tcp packet received by including the ability. The draft standard
also doesn't require it is settable. Use select with timeouts, or alarms


 \ /
  Last update: 2005-03-22 13:38    [W:0.052 / U:20.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site