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
Alan